Skip to content

Commit ca603aa

Browse files
committed
Rename zero address to zero hash
1 parent bb812d2 commit ca603aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

chains/evm/message/across.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ import (
3131
const (
3232
AcrossMessage = "AcrossMessage"
3333

34-
ZERO_ADDRESS = "0000000000000000000000000000000000000000000000000000000000000000"
35-
DOMAIN_NAME = "LiquidityPool"
36-
VERSION = "1.0.0"
37-
PROTOCOL_ID = 1
38-
BLOCK_RANGE = 1000
34+
ZERO_HASH = "0000000000000000000000000000000000000000000000000000000000000000"
35+
DOMAIN_NAME = "LiquidityPool"
36+
VERSION = "1.0.0"
37+
PROTOCOL_ID = 1
38+
BLOCK_RANGE = 1000
3939

4040
TIMEOUT = 10 * time.Minute
4141
)
@@ -245,7 +245,7 @@ func (h *AcrossMessageHandler) minimalConfirmations(d *events.AcrossDeposit) (ui
245245
return 0, err
246246
}
247247

248-
if common.Bytes2Hex(d.OutputToken[:]) == ZERO_ADDRESS {
248+
if common.Bytes2Hex(d.OutputToken[:]) == ZERO_HASH {
249249
address, err := h.tokenMatcher.DestinationToken(d.DestinationChainId, symbol)
250250
if err != nil {
251251
return 0, err

0 commit comments

Comments
 (0)