diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-27 08:35:44 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-28 04:06:02 +0800 |
commit | 748ed403215b685c6aa3da36ab89ad02e2550c71 (patch) | |
tree | a5536010a2548228410fc0c150927ec37423473d /packages/abi-gen/src | |
parent | 42063f785ec565ae5b7f61c2c56a8eabace60d84 (diff) | |
download | dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.tar dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.tar.gz dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.tar.bz2 dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.tar.lz dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.tar.xz dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.tar.zst dexon-0x-contracts-748ed403215b685c6aa3da36ab89ad02e2550c71.zip |
Add to context data
Diffstat (limited to 'packages/abi-gen/src')
-rw-r--r-- | packages/abi-gen/src/index.ts | 1 | ||||
-rw-r--r-- | packages/abi-gen/src/types.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/packages/abi-gen/src/index.ts b/packages/abi-gen/src/index.ts index d34d74cdf..49ff0fe20 100644 --- a/packages/abi-gen/src/index.ts +++ b/packages/abi-gen/src/index.ts @@ -136,6 +136,7 @@ for (const abiFileName of abiFileNames) { const methodData = { ...methodAbi, singleReturnValue: methodAbi.outputs.length === 1, + hasReturnValue: methodAbi.outputs.length !== 0, }; return methodData; }); diff --git a/packages/abi-gen/src/types.ts b/packages/abi-gen/src/types.ts index 402e0105e..deddb1857 100644 --- a/packages/abi-gen/src/types.ts +++ b/packages/abi-gen/src/types.ts @@ -19,6 +19,7 @@ export enum ContractsBackend { export interface Method extends Web3.MethodAbi { singleReturnValue: boolean; + hasReturnValue: boolean; } export interface ContextData { |