File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
target_chains/stylus/contracts/wormhole/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ impl WormholeContract {
233
233
Self :: parse_vm_static ( encoded_vaa)
234
234
}
235
235
236
- // Parsing a Wormhole VAA according to the structure defined
236
+ // Parsing a Wormhole VAA according to the structure defined
237
237
// by https://wormhole.com/docs/protocol/infrastructure/vaas/
238
238
fn parse_vm_static ( encoded_vaa : & [ u8 ] ) -> Result < VerifiedVMM , WormholeError > {
239
239
if encoded_vaa. len ( ) < 6 {
@@ -317,7 +317,7 @@ impl WormholeContract {
317
317
. map_err ( |_| WormholeError :: InvalidVAAFormat ( InvalidVAAFormat { } ) ) ?;
318
318
319
319
let sequence = u64:: from_be_bytes ( sequence_bytes) ;
320
-
320
+
321
321
cursor += 8 ;
322
322
323
323
let consistency_level = encoded_vaa[ cursor] ;
@@ -350,7 +350,7 @@ impl WormholeContract {
350
350
&& guardian_set. expiration_time > 0 {
351
351
return Err ( WormholeError :: GuardianSetExpired ( GuardianSetExpired { } ) )
352
352
}
353
-
353
+
354
354
let num_guardians : u32 = guardian_set. keys . len ( ) . try_into ( ) . map_err ( |_| WormholeError :: InvalidInput ( InvalidInput { } ) ) ?;
355
355
356
356
let required_signatures = Self :: quorum ( num_guardians) ;
You can’t perform that action at this time.
0 commit comments