diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2019-01-10 09:12:26 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2019-01-15 02:49:44 +0800 |
commit | 3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9 (patch) | |
tree | a7371aadbb625afc040e658bb27a3f98daa2770a /packages/base-contract/src/index.ts | |
parent | 82a44559f6a3d795a6a8b0baa9486633bc884475 (diff) | |
download | dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.tar dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.tar.gz dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.tar.bz2 dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.tar.lz dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.tar.xz dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.tar.zst dexon-0x-contracts-3a28eb1c6a5e213f4874c34e8a3c85eadfe98fc9.zip |
Fix build after rebase
Diffstat (limited to 'packages/base-contract/src/index.ts')
-rw-r--r-- | packages/base-contract/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index f9867a348..2471ded92 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -88,7 +88,7 @@ export class BaseContract { if (rawCallResult.slice(REVERT_ERROR_SELECTOR_OFFSET, REVERT_ERROR_SELECTOR_END) === REVERT_ERROR_SELECTOR) { const revertReason = AbiEncoder.create('(string)').decodeAsArray( ethers.utils.hexDataSlice(rawCallResult, REVERT_ERROR_SELECTOR_BYTES_LENGTH), - ); + )[0]; throw new Error(revertReason); } } |