diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2019-01-10 16:37:52 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2019-01-15 02:49:44 +0800 |
commit | cf2dee60dcf5fb6ab160b33b220b67db905cef25 (patch) | |
tree | 893151230b60ddf2fa2430b258feab6c9b9d71c8 /packages/base-contract/src/index.ts | |
parent | 80aa2884a3aeb8b6f64080d665671e22a5c453cd (diff) | |
download | dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.tar dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.tar.gz dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.tar.bz2 dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.tar.lz dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.tar.xz dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.tar.zst dexon-sol-tools-cf2dee60dcf5fb6ab160b33b220b67db905cef25.zip |
Ran prettier
Diffstat (limited to 'packages/base-contract/src/index.ts')
-rw-r--r-- | packages/base-contract/src/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/base-contract/src/index.ts b/packages/base-contract/src/index.ts index f14b9a96a..c2b7b943b 100644 --- a/packages/base-contract/src/index.ts +++ b/packages/base-contract/src/index.ts @@ -90,7 +90,9 @@ export class BaseContract { ethers.utils.hexDataSlice(rawCallResult, REVERT_ERROR_SELECTOR_BYTES_LENGTH), ); if (revertReasonArray.length !== 1) { - throw new Error(`Cannot safely decode revert reason: Expected an array with one element, got ${revertReasonArray}`); + throw new Error( + `Cannot safely decode revert reason: Expected an array with one element, got ${revertReasonArray}`, + ); } const revertReason = revertReasonArray[0]; throw new Error(revertReason); |