rename is_chain_address to which_chain_address

This commit is contained in:
陆柯 2022-08-16 15:30:35 +08:00
parent 76deb199a5
commit e9542cb32c
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ DAD.buildUserAction = async function (action, keypair) {
keypair && keypair &&
keypair.prikey && keypair.prikey &&
keypair.pubkey && keypair.pubkey &&
ticc.seckey_to_pubkey({ prikey: keypair.prikey }) === keypair.pubkey ticc.prikey_to_pubkey({ prikey: keypair.prikey }) === keypair.pubkey
) { ) {
let typedAction = new wo[action.type](action) let typedAction = new wo[action.type](action)
typedAction.actorPubkey = keypair.pubkey typedAction.actorPubkey = keypair.pubkey

View File

@ -168,7 +168,7 @@ step3:发起人申请执行
MOM.validateMe = async function () { MOM.validateMe = async function () {
return ( return (
ticc.is_chain_address({ address: this.toAddress }) && ticc.which_chain_address({ address: this.toAddress }) &&
this.fee >= wo.Config.MIN_FEE_ActionTransfer && this.fee >= wo.Config.MIN_FEE_ActionTransfer &&
this.toAddress != this.actorAddress this.toAddress != this.actorAddress
) )