Skip to content

Commit 9a9c899

Browse files
committed
Merge branch 'resource_metering' of https://github.com/dmkozh/rs-soroban-sdk into resource_metering
2 parents dc411d2 + ffed9c1 commit 9a9c899

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

soroban-sdk/src/env.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,9 @@ impl Env {
993993
.unwrap();
994994

995995
let prev_auth_manager = self.env_impl.snapshot_auth_manager().unwrap();
996-
self.env_impl.switch_to_recording_auth(true).unwrap();
996+
self.env_impl
997+
.switch_to_recording_auth_inherited_from_snapshot(&prev_auth_manager)
998+
.unwrap();
997999
self.invoke_contract::<()>(
9981000
&token_id,
9991001
&soroban_sdk_macros::internal_symbol_short!("set_admin"),
@@ -1042,7 +1044,9 @@ impl Env {
10421044
constructor_args: Vec<Val>,
10431045
) -> Address {
10441046
let prev_auth_manager = self.env_impl.snapshot_auth_manager().unwrap();
1045-
self.env_impl.switch_to_recording_auth(true).unwrap();
1047+
self.env_impl
1048+
.switch_to_recording_auth_inherited_from_snapshot(&prev_auth_manager)
1049+
.unwrap();
10461050
let args_vec: std::vec::Vec<xdr::ScVal> =
10471051
constructor_args.iter().map(|v| v.into_val(self)).collect();
10481052
let contract_id: Address = self

0 commit comments

Comments
 (0)