viem: abigen from optimism repo snapshots #2162
Annotations
2 errors and 3 warnings
Unhandled error:
packages/viem/src/actions/relayL2ToL2Message.ts#L139
ContractFunctionExecutionError: The contract function "relayMessage" returned no data ("0x").
This could be due to any of the following:
- The contract does not have the function "relayMessage",
- The parameters passed to the contract function may be invalid, or
- The address is not a contract.
Contract Call:
address: 0x4200000000000000000000000000000000000023
function: relayMessage((address origin, uint256 blockNumber, uint256 logIndex, uint256 timestamp, uint256 chainId), bytes _sentMessage)
args: ({"origin":"0x4200000000000000000000000000000000000023","logIndex":"0","blockNumber":"26","timestamp":"1737072404","chainId":"901"}, 0x382409ac69001e11931a28435afef442cbfd20d9891907e8fa373ba7d351f3200000000000000000000000000000000000000000000000000000000000000386000000000000000000000000057ef64e23666f000b34ae31332854acbd1c85440000000000000000000000000000000000000000000000000000000000000005000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024474d0b5a000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000)
sender: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
Docs: https://viem.sh/docs/contract/simulateContract
Version: [email protected]
❯ getContractError ../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ Module.simulateContract ../../node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/viem/actions/public/simulateContract.ts:272:11
❯ Module.simulateRelayL2ToL2Message src/actions/relayL2ToL2Message.ts:139:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/simulateContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "relayMessage",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x4200000000000000000000000000000000000023\n function: relayMessage((address origin, uint256 blockNumber, uint256 logIndex, uint256 timestamp, uint256 chainId), bytes _sentMessage)\n args: ({"origin":"0x4200000000000000000000000000000000000023","logIndex":"0","blockNumber":"26","timestamp":"1737072404","chainId":"901"}, 0x382409ac69001e11931a28435afef442cbfd20d9891907e8fa373ba7d351f3200000000000000000000000000000000000000000000000000000000000000386000000000000000000000000057ef64e23666f000b34ae31332854acbd1c85440000000000000000000000000000000000000000000000000000000000000005000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000024474d0b5a000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb9226600000000000000000000000000000000000000000000000000000000)\n sender: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], shortMessage: 'The contract function "relayMessage" returned no data ("0x").', version: '[email protected]', abi: [ { type: 'function', name: 'crossDomainMessageContext', inputs: [], outputs: [ { name: 'sender_', type: 'address', internalType: 'address' }, { name: 'source_', type: 'uint256', internalType: 'uint256' } ], stateMutability: 'view' }, { type: 'function', name: 'crossDomainMessageSender', inputs: [], outputs: [ { name: 'sender_', type: 'address', internalType: 'address' } ], stateMutability: 'view' }, { type: 'function', name: 'crossDomainMessageSource', inputs: [], outputs: [ { name: 'source_', type: 'uint256', internalType: 'uint256' } ], stateMutability: 'view' }, { type: 'function', name: 'messageNonce', inputs: [], outputs: [ { name: '', type: 'uint256', internalType: 'uint256' } ], stateMutability: 'view' }, { type: 'function', name: 'messageVersion', inputs: [], outp
|
test
Process completed with exit code 1.
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|