diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-22 03:16:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-22 03:16:55 +0800 |
commit | 8d6ba6ee7a73cdc00e089f0c493864cd02e5a833 (patch) | |
tree | 048035ebe94b35928c09bb04882df29b4af4a75f /packages/0x.js/src/web3_wrapper.ts | |
parent | 173a707a2e1f5667500e1a8ea6eb1a775a584291 (diff) | |
download | dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.gz dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.bz2 dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.lz dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.xz dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.zst dexon-0x-contracts-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.zip |
Rename toDecimal to hexToDecimal
Diffstat (limited to 'packages/0x.js/src/web3_wrapper.ts')
-rw-r--r-- | packages/0x.js/src/web3_wrapper.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/0x.js/src/web3_wrapper.ts b/packages/0x.js/src/web3_wrapper.ts index af96c7650..f6b6ca09a 100644 --- a/packages/0x.js/src/web3_wrapper.ts +++ b/packages/0x.js/src/web3_wrapper.ts @@ -184,13 +184,13 @@ export class Web3Wrapper { private formatLog(rawLog: RawLogEntry): Web3.LogEntry { const formattedLog = { ...rawLog, - logIndex: this.toDecimal(rawLog.logIndex), - blockNumber: this.toDecimal(rawLog.blockNumber), - transactionIndex: this.toDecimal(rawLog.transactionIndex), + logIndex: this.hexToDecimal(rawLog.logIndex), + blockNumber: this.hexToDecimal(rawLog.blockNumber), + transactionIndex: this.hexToDecimal(rawLog.transactionIndex), }; return formattedLog; } - private toDecimal(hex: string|null): number|null { + private hexToDecimal(hex: string|null): number|null { if (_.isNull(hex)) { return null; } |