Merge pull request #34 from 67P/feature/support-contract-call-options

Add support for contract tx call options
这个提交包含在:
bumi 2018-04-20 10:59:07 +00:00 提交者 GitHub
当前提交 aedf2cc7bd
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 4 次插入4 次删除

查看文件

@ -34,7 +34,7 @@ class Contributor extends Base {
});
}
add(contributorAttr) {
add(contributorAttr, callOptions = {}) {
let json = ContributorSerializer.serialize(contributorAttr);
// TODO: validate against schema
@ -49,7 +49,7 @@ class Contributor extends Base {
contributorAttr.isCore,
];
return this.functions.addContributor(...contributor);
return this.functions.addContributor(...contributor, callOptions);
});
}
}

查看文件

@ -34,7 +34,7 @@ class Operator extends Base {
});
}
addProposal(proposalAttr) {
addProposal(proposalAttr, callOptions = {}) {
let json = ContributionSerializer.serialize(proposalAttr);
// TODO: validate against schema
@ -49,7 +49,7 @@ class Operator extends Base {
ipfsHashAttr.hashSize,
];
return this.functions.addProposal(...proposal);
return this.functions.addProposal(...proposal, callOptions);
});
}
}