@@ -108,19 +108,29 @@ var _ = Describe("Solana", func() {
108
108
109
109
// The registry (in the CI test environment) is pre-populated with gateway
110
110
// addresses for BTC/toSolana selector.
111
+ zero := pack .NewU256FromU8 (pack .U8 (0 )).Bytes32 ()
111
112
btcSelectorHash := [32 ]byte {}
112
113
copy (btcSelectorHash [:], crypto .Keccak256 ([]byte ("BTC/toSolana" )))
113
- zero := pack .NewU256FromU8 (pack .U8 (0 )).Bytes32 ()
114
+ lunaSelectorHash := [32 ]byte {}
115
+ copy (lunaSelectorHash [:], crypto .Keccak256 ([]byte ("LUNA/toSolana" )))
116
+ daiSelectorHash := [32 ]byte {}
117
+ copy (daiSelectorHash [:], crypto .Keccak256 ([]byte ("DAI/toSolana" )))
114
118
115
119
addrEncodeDecoder := solana .NewAddressEncodeDecoder ()
116
- expectedBtcGateway , _ := addrEncodeDecoder .DecodeAddress (multichain .Address ("FDdKRjbBeFtyu5c66cZghJsTTjDTT1aD3zsgTWMTpaif" ))
120
+ expectedBtcGateway , _ := addrEncodeDecoder .DecodeAddress ("FDdKRjbBeFtyu5c66cZghJsTTjDTT1aD3zsgTWMTpaif" )
121
+ expectedLunaGateway , _ := addrEncodeDecoder .DecodeAddress ("3zfUUYDVp68fk9Z8FoKxEcEFqSMhE5UZ3Mw8mGhm5WRt" )
122
+ expectedDaiGateway , _ := addrEncodeDecoder .DecodeAddress ("rZJ8SoJBNWq8Qi6QTNTdVv78DPW6mn2fJUw7CPUvSgA" )
117
123
118
124
Expect (registry .Count ).To (Equal (uint64 (3 )))
119
125
Expect (registry .Selectors [0 ]).To (Equal (btcSelectorHash ))
120
- Expect (registry .Selectors [1 ]).To (Equal (zero ))
126
+ Expect (registry .Selectors [1 ]).To (Equal (lunaSelectorHash ))
127
+ Expect (registry .Selectors [2 ]).To (Equal (daiSelectorHash ))
128
+ Expect (registry .Selectors [3 ]).To (Equal (zero ))
121
129
Expect (len (registry .Selectors )).To (Equal (32 ))
122
130
Expect (registry .Gateways [0 ][:]).To (Equal ([]byte (expectedBtcGateway )))
123
- Expect (registry .Gateways [1 ]).To (Equal (zero ))
131
+ Expect (registry .Gateways [1 ][:]).To (Equal ([]byte (expectedLunaGateway )))
132
+ Expect (registry .Gateways [2 ][:]).To (Equal ([]byte (expectedDaiGateway )))
133
+ Expect (registry .Gateways [3 ]).To (Equal (zero ))
124
134
Expect (len (registry .Gateways )).To (Equal (32 ))
125
135
})
126
136
})
0 commit comments