action.packMe(keypair)调用有个无关紧要的小错:输入参数是 {seckey, pubkey} 即可,不需要传入 address,因为 address 是 packMe 内部自己根据 pubkey 生成的。
This commit is contained in:
parent
c99bd5d238
commit
601d535b71
7
tic.js
7
tic.js
@ -111,13 +111,12 @@ class TIC {
|
|||||||
let action=new ticActionTransfer({
|
let action=new ticActionTransfer({
|
||||||
amount: parseInt(option.amount),
|
amount: parseInt(option.amount),
|
||||||
toAddress: option.toAddress,
|
toAddress: option.toAddress,
|
||||||
fee:option.fee||this._defaultFee
|
fee:option.fee||this._defaultFee,
|
||||||
})
|
})
|
||||||
//sign for txBody use function packMe, which needs actor's keypair as parameter
|
//sign for txBody use function packMe, which needs actor's keypair as parameter
|
||||||
action.packMe({
|
action.packMe({
|
||||||
seckey: this.seckey,
|
seckey: this.seckey,
|
||||||
pubkey: this.pubkey,
|
pubkey: this.pubkey,
|
||||||
address: this.address
|
|
||||||
})
|
})
|
||||||
return action
|
return action
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user