Skip to content

Commit

Permalink
rm
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Feb 26, 2025
1 parent dead96b commit 30dd300
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/capabilities/ccip/ccipevm/addresscodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@ import (
"encoding/hex"
"fmt"
"strings"

"github.com/ethereum/go-ethereum/common"
)

type AddressCodec struct{}

func (a AddressCodec) AddressBytesToString(addr []byte) (string, error) {
// TODO support EIP-55 checksum, https://smartcontract-it.atlassian.net/browse/CCIP-5340
if len(addr) != common.AddressLength {
return "", fmt.Errorf("invalid EVM address length, expected %v, got %d", common.AddressLength, len(addr))
}

return "0x" + hex.EncodeToString(addr), nil
}

Expand Down

0 comments on commit 30dd300

Please sign in to comment.