Function sway_libs::upgradability::only_proxy_owner
pub fn only_proxy_owner()
Expand description
Ensures that the sender is the proxy owner.
Reverts
- When the sender is not the proxy owner.
Number of Storage Accesses
- Reads:
1
Examples
use sway_libs::ownership::only_proxy_owner;
fn foo() {
only_proxy_owner();
// Do stuff here if the sender is the proxy owner
}