Add to context data

This commit is contained in:
Leonid Logvinov
2018-02-26 16:35:44 -08:00
parent 42063f785e
commit 748ed40321
3 changed files with 3 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
* Add a `backend` parameter that allows you to specify your backend (web3 or ethers). Ethers auto-converts small ints to numbers (#413)
* Add support for ABIv2 (#413)
* Add `hasReturnValue` to context data (#413)
## v0.2.1 - _February 9, 2018_

View File

@@ -136,6 +136,7 @@ for (const abiFileName of abiFileNames) {
const methodData = {
...methodAbi,
singleReturnValue: methodAbi.outputs.length === 1,
hasReturnValue: methodAbi.outputs.length !== 0,
};
return methodData;
});

View File

@@ -19,6 +19,7 @@ export enum ContractsBackend {
export interface Method extends Web3.MethodAbi {
singleReturnValue: boolean;
hasReturnValue: boolean;
}
export interface ContextData {