Skip to content

Commit d8f308c

Browse files
committed
chore: move vecm conversion out of auth snapshot window
1 parent 2e85964 commit d8f308c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

soroban-sdk/src/env.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,7 @@ impl Env {
11691169
) -> Address {
11701170
let args_vec: std::vec::Vec<xdr::ScVal> =
11711171
constructor_args.iter().map(|v| v.into_val(self)).collect();
1172+
let constructor_args = args_vec.try_into().unwrap();
11721173
let prev_auth_manager = self.env_impl.snapshot_auth_manager().unwrap();
11731174
self.env_impl
11741175
.switch_to_recording_auth_inherited_from_snapshot(&prev_auth_manager)
@@ -1186,7 +1187,7 @@ impl Env {
11861187
},
11871188
),
11881189
executable,
1189-
constructor_args: args_vec.try_into().unwrap(),
1190+
constructor_args,
11901191
},
11911192
));
11921193

0 commit comments

Comments
 (0)