Allow optional params (#68)

* Allow optional params

* Don't double-up on method signature

* Cleanup formatters/util
This commit is contained in:
Jaco Greeff
2018-04-17 13:17:19 +02:00
committed by GitHub
parent 28050f86e7
commit 3c40c1de64
12 changed files with 140 additions and 106 deletions
@@ -19,6 +19,7 @@ module.exports = ({
type: 'H256'
},
{
isOptional: true,
name: 'blockHash',
type: 'HeaderHash'
}
+1
View File
@@ -10,6 +10,7 @@ export type FormatInputType = 'Bytes' | 'H256' | 'HeaderHash' | 'String';
export type FormatOutputType = 'BlockNumber' | 'Bytes' | 'Header' | 'HeaderHash' | 'U64';
export type InterfaceInputType = {
isOptional?: boolean,
name: string,
type: FormatInputType
};