diff --git a/common/types.go b/common/types.go index a914828..3147976 100644 --- a/common/types.go +++ b/common/types.go @@ -41,10 +41,6 @@ func BytesToAddress(b []byte) (a Address) { return } -func (p Address) Equals(pb Address) bool { - return p == pb -} - // BigToAddress returns Address with byte values of b. func BigToAddress(b *big.Int) Address { return BytesToAddress(b.Bytes()) } diff --git a/types/transaction.go b/types/transaction.go index d66b889..a435611 100644 --- a/types/transaction.go +++ b/types/transaction.go @@ -330,7 +330,7 @@ func (tx *Transaction) Sign(accounts []crypto.Account) (err error) { signerMatch: for _, key := range signerKeys { for _, signer := range accounts { - if key.Equals(signer.Address) { + if key == signer.Address { s := signer.Sign(messageContent) tx.Signatures = append(tx.Signatures, common.BytesToSignature(s)) continue signerMatch