We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e85964 commit d8f308cCopy full SHA for d8f308c
soroban-sdk/src/env.rs
@@ -1169,6 +1169,7 @@ impl Env {
1169
) -> Address {
1170
let args_vec: std::vec::Vec<xdr::ScVal> =
1171
constructor_args.iter().map(|v| v.into_val(self)).collect();
1172
+ let constructor_args = args_vec.try_into().unwrap();
1173
let prev_auth_manager = self.env_impl.snapshot_auth_manager().unwrap();
1174
self.env_impl
1175
.switch_to_recording_auth_inherited_from_snapshot(&prev_auth_manager)
@@ -1186,7 +1187,7 @@ impl Env {
1186
1187
},
1188
),
1189
executable,
- constructor_args: args_vec.try_into().unwrap(),
1190
+ constructor_args,
1191
1192
));
1193
0 commit comments