Add to context data
This commit is contained in:
@@ -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_
|
||||
|
||||
|
||||
@@ -136,6 +136,7 @@ for (const abiFileName of abiFileNames) {
|
||||
const methodData = {
|
||||
...methodAbi,
|
||||
singleReturnValue: methodAbi.outputs.length === 1,
|
||||
hasReturnValue: methodAbi.outputs.length !== 0,
|
||||
};
|
||||
return methodData;
|
||||
});
|
||||
|
||||
@@ -19,6 +19,7 @@ export enum ContractsBackend {
|
||||
|
||||
export interface Method extends Web3.MethodAbi {
|
||||
singleReturnValue: boolean;
|
||||
hasReturnValue: boolean;
|
||||
}
|
||||
|
||||
export interface ContextData {
|
||||
|
||||
Reference in New Issue
Block a user