Skip to content

Commit

Permalink
remove Equals
Browse files Browse the repository at this point in the history
  • Loading branch information
ciel committed Apr 29, 2024
1 parent a9579fc commit ce57a9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }

Expand Down
2 changes: 1 addition & 1 deletion types/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce57a9f

Please sign in to comment.