aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-22 03:16:55 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-22 03:16:55 +0800
commit8d6ba6ee7a73cdc00e089f0c493864cd02e5a833 (patch)
tree048035ebe94b35928c09bb04882df29b4af4a75f
parent173a707a2e1f5667500e1a8ea6eb1a775a584291 (diff)
downloaddexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar
dexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.gz
dexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.bz2
dexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.lz
dexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.xz
dexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.tar.zst
dexon-sol-tools-8d6ba6ee7a73cdc00e089f0c493864cd02e5a833.zip
Rename toDecimal to hexToDecimal
-rw-r--r--packages/0x.js/src/web3_wrapper.ts8
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;
}