diff --git a/chain/signVerifier.go b/chain/signVerifier.go index 28d4a92a8..693736885 100644 --- a/chain/signVerifier.go +++ b/chain/signVerifier.go @@ -138,7 +138,7 @@ func (sv *SignVerifier) verifyTx(comm component.IComponentRequester, tx *types.T logger.Error().Err(err).Msg("failed to get verify because of opening contract error") return false, err } - address := name.GetOwner(cs, tx.Body.Account) + address := name.GetAddress(cs, tx.Body.Account) err = key.VerifyTxWithAddress(tx, address) if err != nil { return false, err diff --git a/mempool/mempool.go b/mempool/mempool.go index 1b629df75..daf4e3f2b 100644 --- a/mempool/mempool.go +++ b/mempool/mempool.go @@ -519,7 +519,7 @@ func (mp *MemPool) removeOnBlockArrival(block *types.Block) error { account := tx.GetBody().GetAccount() recipient := tx.GetBody().GetRecipient() if tx.HasNameAccount() { - account = mp.getOwner(account) // it's for the case that tx sender is named smart contract + account = mp.getAddress(account) } if tx.HasNameRecipient() { recipient = mp.getAddress(recipient)