Skip to content

Commit

Permalink
params
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelycs committed Feb 18, 2019
1 parent e07ef14 commit 57e9d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/txBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export default class tx {
}

async createContract({
accountAddress, tokenId, amount, fee, hexCode, abi, params, height, prevHash, snapshotHash
accountAddress, tokenId, amount, fee, hexCode, abi, height, prevHash, snapshotHash
}: createContractBlock, requestType = 'async') {
let err = checkParams({ hexCode, abi, tokenId, amount, fee}, ['hexCode', 'abi', 'tokenId', 'amount', 'fee']);
if (err) {
Expand Down Expand Up @@ -351,7 +351,7 @@ export default class tx {
async callContract({
accountAddress, toAddress, tokenId, amount, jsonInterface, params=[], height, prevHash, snapshotHash
}: callContractBlock, requestType = 'async') {
let err = checkParams({ toAddress, jsonInterface, tokenId, amount }, ['toAddress', 'jsonInterface','tokenId', 'amount']);
let err = checkParams({ toAddress, jsonInterface }, ['toAddress', 'jsonInterface','tokenId', 'amount']);
if (err) {
return Promise.reject(err);
}
Expand Down

0 comments on commit 57e9d23

Please sign in to comment.