simulatePermit
simulatePermit(
rpc,chainId,token,from,callData):Promise<void>
Defined in: protocol-swap2-cow/src/permit.ts:236
Runs the exact permit call against the latest block. Resolves when the token accepts it within the hook’s gas;
throws when it reverts, needs more gas than the hook has, or no RPC answered — the order is then not signed.
Parameters
Section titled “Parameters”chainId
Section titled “chainId”number
string
string
callData
Section titled “callData”`0x${string}`
Returns
Section titled “Returns”Promise<void>