Skip to main content

parse_scope

Function parse_scope 

Source
fn parse_scope(s: &str) -> Result<CallScope, String>
Expand description

Parse a --scope TARGET[:SELECTORS[@RECIPIENTS]] flag value.

Formats:

  • 0xAddr — allow all calls to target
  • 0xAddr:transfer,approve — allow only those selectors (by name or 4-byte hex)
  • 0xAddr:transfer@0xRecipient — selector with recipient restriction