File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -993,7 +993,9 @@ impl Env {
993
993
. unwrap ( ) ;
994
994
995
995
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 ( ) ;
997
999
self . invoke_contract :: < ( ) > (
998
1000
& token_id,
999
1001
& soroban_sdk_macros:: internal_symbol_short!( "set_admin" ) ,
@@ -1042,7 +1044,9 @@ impl Env {
1042
1044
constructor_args : Vec < Val > ,
1043
1045
) -> Address {
1044
1046
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 ( ) ;
1046
1050
let args_vec: std:: vec:: Vec < xdr:: ScVal > =
1047
1051
constructor_args. iter ( ) . map ( |v| v. into_val ( self ) ) . collect ( ) ;
1048
1052
let contract_id: Address = self
You can’t perform that action at this time.
0 commit comments