Skip to content
Merged
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 lib/mock/relayer.mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/prototyp/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ func (h Hash) IsEmpty() bool {
return h == ""
}

// IsNativeAssetAddress checks if the hash value is the ERC-7528
// IsEtherNativeTokenAddress checks if the hash value is the ERC-7528
// native token address represented as a contract address.
// see https://eips.ethereum.org/EIPS/eip-7528
func (h Hash) IsNativeAssetAddress() bool {
func (h Hash) IsEtherNativeTokenAddress() bool {
return h == "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ||
h == "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
}
Expand Down
11 changes: 11 additions & 0 deletions lib/prototyp/prototyp.go
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
package prototyp

// EtherNativeTokenAddress represents ETH as an erc20 token address
// according to https://eips.ethereum.org/EIPS/eip-7528
//
// NOTE: throughout sequence we actually use 0x0000000000000000000000000000000000000000
// as the address to represent a native token, so just be mindful when using
// both. We will evolve to treat both as native ETH.
const EtherNativeTokenAddress = Hash("0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")

// ZeroAddress is the canonical zero address.
const ZeroAddress = Hash("0x0000000000000000000000000000000000000000")
Loading
Loading