Skip to main content

remove_allowed_calls

Function remove_allowed_calls 

Source
pub fn remove_allowed_calls(key_id: Address, target: Address) -> Call
Expand description

Build a removeAllowedCalls(address,address) precompile call.

§Examples

use alloy_primitives::address;
use tempo_alloy::provider::keychain::remove_allowed_calls;

let key_id = address!("0x1111111111111111111111111111111111111111");
let token = address!("0x20c0000000000000000000000000000000000001");

// Remove all call-scope rules targeting `token`
let call = remove_allowed_calls(key_id, token);