diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 05:41:50 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-07-04 05:41:50 +0800 |
commit | c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2 (patch) | |
tree | 0cb99d4d64b08dd6bb1d64e53c0e0af751d6b8c9 /src/contract_wrappers/exchange_wrapper.ts | |
parent | 3a4a3b9aa1ebbf80fcd5d0b0cdb3727c55babc3b (diff) | |
download | dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.tar dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.tar.gz dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.tar.bz2 dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.tar.lz dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.tar.xz dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.tar.zst dexon-0x-contracts-c9edeae6d8dad1fba6c4f5eca63ff5db3e6555e2.zip |
Rename _wrapEventCallback to _getBigNumberWrappingEventCallback
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 2d46b99de..57a116aea 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -657,7 +657,7 @@ export class ExchangeWrapper extends ContractWrapper { } private _wrapEventEmitter(event: ContractEventObj): ContractEventEmitter { const watch = (eventCallback: EventCallback) => { - const bignumberWrappingEventCallback = this._wrapEventCallback(eventCallback); + const bignumberWrappingEventCallback = this._getBigNumberWrappingEventCallback(eventCallback); event.watch(bignumberWrappingEventCallback); }; const zeroExEvent = { @@ -668,7 +668,7 @@ export class ExchangeWrapper extends ContractWrapper { }; return zeroExEvent; } - private _wrapEventCallback(eventCallback: EventCallback): EventCallback { + private _getBigNumberWrappingEventCallback(eventCallback: EventCallback): EventCallback { const bignumberWrappingEventCallback = (err: Error, event: ContractEvent) => { if (_.isNull(err)) { const wrapIfBigNumber = (value: ContractEventArg): ContractEventArg => { |