diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-04 17:48:45 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-04 17:48:45 +0800 |
commit | 499e60c4a3719ce0699f75f1993a5336d0074bc7 (patch) | |
tree | 02425c9711b4d8f2ff74ec0959025d63c4140bda | |
parent | a6f4f83b5b0440a3f63112514c6abe6be74df3f9 (diff) | |
download | dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.tar dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.tar.gz dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.tar.bz2 dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.tar.lz dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.tar.xz dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.tar.zst dexon-sol-tools-499e60c4a3719ce0699f75f1993a5336d0074bc7.zip |
Use 0x.length instead of 2
-rw-r--r-- | src/utils/abi_decoder.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/abi_decoder.ts b/src/utils/abi_decoder.ts index b601dd2f4..4646016f2 100644 --- a/src/utils/abi_decoder.ts +++ b/src/utils/abi_decoder.ts @@ -24,7 +24,7 @@ export class AbiDecoder { const nonIndexedInputs = _.filter(event.inputs, input => !input.indexed); const dataTypes = _.map(nonIndexedInputs, input => input.type); - const decodedData = SolidityCoder.decodeParams(dataTypes, logData.slice(2)); + const decodedData = SolidityCoder.decodeParams(dataTypes, logData.slice('0x'.length)); _.map(event.inputs, (param: Web3.EventParameter) => { let value; |