Skip to content

Commit cd54a30

Browse files
authored
update relayer client (#315)
1 parent a3abee1 commit cd54a30

File tree

5 files changed

+334
-258
lines changed

5 files changed

+334
-258
lines changed

lib/mock/relayer.mock.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/prototyp/hash.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ func (h Hash) IsEmpty() bool {
130130
return h == ""
131131
}
132132

133-
// IsNativeAssetAddress checks if the hash value is the ERC-7528
133+
// IsEtherNativeTokenAddress checks if the hash value is the ERC-7528
134134
// native token address represented as a contract address.
135135
// see https://eips.ethereum.org/EIPS/eip-7528
136-
func (h Hash) IsNativeAssetAddress() bool {
136+
func (h Hash) IsEtherNativeTokenAddress() bool {
137137
return h == "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE" ||
138138
h == "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
139139
}

lib/prototyp/prototyp.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
11
package prototyp
2+
3+
// EtherNativeTokenAddress represents ETH as an erc20 token address
4+
// according to https://eips.ethereum.org/EIPS/eip-7528
5+
//
6+
// NOTE: throughout sequence we actually use 0x0000000000000000000000000000000000000000
7+
// as the address to represent a native token, so just be mindful when using
8+
// both. We will evolve to treat both as native ETH.
9+
const EtherNativeTokenAddress = Hash("0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee")
10+
11+
// ZeroAddress is the canonical zero address.
12+
const ZeroAddress = Hash("0x0000000000000000000000000000000000000000")

0 commit comments

Comments
 (0)