Execute Errors
Execute.UnsupportedModeError
Thrown when the mode of ERC-7821 execute function data is not supported by the decoder.
Examples
import { Execute } from 'ox/erc7821'
const data = Execute.encodeBatchOfBatchesData([
{
calls: [
{
data: '0xcafebabe',
to: '0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef',
value: 1n
}
]
}
])
Execute.decodeData(data)
Execute.UnsupportedModeError: Execution mode `0x0100000000007821000200000000000000000000000000000000000000000000` is not supported.Source: src/erc7821/Execute.ts

