Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/signVerifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment thread
hayarobi marked this conversation as resolved.
err = key.VerifyTxWithAddress(tx, address)
if err != nil {
return false, err
Expand Down
2 changes: 1 addition & 1 deletion mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading