You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our in-house unit-testing abstractions (which are based on this PoC), we have tried to find a way to set msg::sender. However, I think there is no way right now, because it is private to the SDK:
pub(crate)staticmutSENDER: hostio::CachedOption<Address> = hostio::CachedOption::new(||{letmut data = Address::ZERO;unsafe{
hostio::msg_sender(data.as_mut_ptr())};
data.into()})
Could we make this pub (though global mutable statics need to be treated with care) or is there a way to modify this I am missing?
The text was updated successfully, but these errors were encountered:
In our in-house unit-testing abstractions (which are based on this PoC), we have tried to find a way to set
msg::sender
. However, I think there is no way right now, because it is private to the SDK:Could we make this
pub
(though global mutable statics need to be treated with care) or is there a way to modify this I am missing?The text was updated successfully, but these errors were encountered: