@@ -173,7 +173,7 @@ pub struct MockChannelLookup;
173
173
impl ChannelLookup for MockChannelLookup {
174
174
fn lookup ( channel_id : ChannelId ) -> Option < Channel > {
175
175
if channel_id !=
176
- hex ! ( "00000000000000000000000000000000000000000000000000000000000003e8 " ) . into ( )
176
+ hex ! ( "c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539 " ) . into ( )
177
177
{
178
178
return None
179
179
}
@@ -247,11 +247,11 @@ fn mock_event_log() -> Log {
247
247
// gateway address
248
248
address : hex ! ( "eda338e4dc46038493b885327842fd3e301cab39" ) . into ( ) ,
249
249
topics : vec ! [
250
- hex!( "5066fbba677e15936860e04088ca4cad3acd4c19706962196a5346f1457f7169 " ) . into( ) ,
250
+ hex!( "7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f " ) . into( ) ,
251
251
// channel id
252
- hex!( "00000000000000000000000000000000000000000000000000000000000003e8 " ) . into( ) ,
252
+ hex!( "c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539 " ) . into( ) ,
253
253
// message id
254
- hex!( "afad3c9777134532ae230b4fad334eef2e0dacbb965920412a7eaa59b07d640f " ) . into( ) ,
254
+ hex!( "5f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0 " ) . into( ) ,
255
255
] ,
256
256
// Nonce + Payload
257
257
data : hex ! ( "00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001e000f000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d0000" ) . into ( ) ,
@@ -260,16 +260,13 @@ fn mock_event_log() -> Log {
260
260
261
261
fn mock_event_log_invalid_channel ( ) -> Log {
262
262
Log {
263
- // gateway address
264
263
address : hex ! ( "eda338e4dc46038493b885327842fd3e301cab39" ) . into ( ) ,
265
264
topics : vec ! [
266
- hex!( "5066fbba677e15936860e04088ca4cad3acd4c19706962196a5346f1457f7169" ) . into( ) ,
267
- // channel id
268
- hex!( "00000000000000000000000000000000000000000000000000000000000003e9" ) . into( ) ,
269
- // message id
270
- hex!( "afad3c9777134532ae230b4fad334eef2e0dacbb965920412a7eaa59b07d640f" ) . into( ) ,
265
+ hex!( "7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f" ) . into( ) ,
266
+ // invalid channel id
267
+ hex!( "0000000000000000000000000000000000000000000000000000000000000000" ) . into( ) ,
268
+ hex!( "5f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0" ) . into( ) ,
271
269
] ,
272
- // Nonce + Payload
273
270
data : hex ! ( "00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001e000f000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d0000" ) . into ( ) ,
274
271
}
275
272
}
@@ -279,11 +276,11 @@ fn mock_event_log_invalid_gateway() -> Log {
279
276
// gateway address
280
277
address : H160 :: zero ( ) ,
281
278
topics : vec ! [
282
- hex!( "5066fbba677e15936860e04088ca4cad3acd4c19706962196a5346f1457f7169 " ) . into( ) ,
279
+ hex!( "7153f9357c8ea496bba60bf82e67143e27b64462b49041f8e689e1b05728f84f " ) . into( ) ,
283
280
// channel id
284
- hex!( "00000000000000000000000000000000000000000000000000000000000003e8 " ) . into( ) ,
281
+ hex!( "c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539 " ) . into( ) ,
285
282
// message id
286
- hex!( "afad3c9777134532ae230b4fad334eef2e0dacbb965920412a7eaa59b07d640f " ) . into( ) ,
283
+ hex!( "5f7060e971b0dc81e63f0aa41831091847d97c1a4693ac450cc128c7214e65e0 " ) . into( ) ,
287
284
] ,
288
285
// Nonce + Payload
289
286
data : hex ! ( "00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001e000f000000000000000087d1f7fdfee7f651fabc8bfcb6e086c278b77a7d0000" ) . into ( ) ,
@@ -315,12 +312,12 @@ fn test_submit_happy_path() {
315
312
} ;
316
313
assert_ok ! ( InboundQueue :: submit( origin. clone( ) , message. clone( ) ) ) ;
317
314
expect_events ( vec ! [ InboundQueueEvent :: MessageReceived {
318
- channel_id: hex!( "00000000000000000000000000000000000000000000000000000000000003e8 " )
315
+ channel_id: hex!( "c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539 " )
319
316
. into( ) ,
320
317
nonce: 1 ,
321
318
message_id: [
322
- 3 , 29 , 43 , 131 , 7 , 80 , 47 , 2 , 238 , 64 , 45 , 200 , 64 , 1 , 46 , 74 , 121 , 211 , 8 , 178 ,
323
- 198 , 26 , 230 , 13 , 180 , 78 , 164 , 58 , 22 , 133 , 206 , 83 ,
319
+ 168 , 12 , 232 , 40 , 69 , 197 , 207 , 74 , 203 , 65 , 199 , 240 , 164 , 52 , 244 , 217 , 62 , 156 ,
320
+ 107 , 237 , 117 , 203 , 233 , 78 , 251 , 233 , 31 , 54 , 155 , 124 , 204 , 201 ,
324
321
] ,
325
322
}
326
323
. into( ) ] ) ;
@@ -402,7 +399,7 @@ fn test_submit_with_invalid_nonce() {
402
399
assert_ok ! ( InboundQueue :: submit( origin. clone( ) , message. clone( ) ) ) ;
403
400
404
401
let nonce: u64 = <Nonce < Test > >:: get ( ChannelId :: from ( hex ! (
405
- "00000000000000000000000000000000000000000000000000000000000003e8 "
402
+ "c173fac324158e77fb5840738a1a541f633cbec8884c6a601c567d2b376a0539 "
406
403
) ) ) ;
407
404
assert_eq ! ( nonce, 1 ) ;
408
405
0 commit comments