Type Alias: SimulateEVMTxResult
SimulateEVMTxResult = {
success:true; } | {errorArgs:Record<string,unknown> |null;errorName:string|null;revertData:string;success:false; }
Defined in: cct/evm/simulate.ts:51
Result of simulateEVMTx, discriminated on success.
Union Members
Type Literal
{ success: true; }
success
success:
true
The call completed without reverting.
Type Literal
{ errorArgs: Record<string, unknown> | null; errorName: string | null; revertData: string; success: false; }
errorArgs
errorArgs:
Record<string,unknown> |null
Decoded error arguments keyed by parameter name (by position when unnamed), e.g.
{ remoteChainSelector: 16015286601757825753n } for LockBoxNotConfigured, or
{ 0: 'amount exceeds balance' } for a revert string. null when the error is unknown
or its data doesn't decode.
errorName
errorName:
string|null
Decoded error name (InsufficientLiquidity, or Error for a revert string), null when
no known ABI declares the selector.
revertData
revertData:
string
Raw revert data, 0x for a revert without data.
success
success:
false
The call reverted.