Skip to content

[Core Protocol] Precompile 0x0100 (RIP-7212) returns empty returndata in real tx, works via eth_call on OP Sepolia #791

Closed Answered by craterface77
craterface77 asked this question in Core Protocol
Discussion options

You must be logged in to vote

Hi, thanks for your answer! I already figured out how to work with this correctly, so I'm attaching the code for the guys who might also encounter difficulties:

  1. I created the simple contract that will call 0x100:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

contract MockPrecompile {
    function tryVerifyNative() external view returns (bool, bytes memory) {
        bytes32 h = 0x92b4e9f68a01a06f4ca4feef9fafe9b74f717c1c46b9f8fdf6e60fd6f2e4fdb0;
        bytes32 r = 0x1a1fd8c4cbbd528e97416003a4e4b8b1e939f764057dac2254c0e0bf305da480;
        bytes32 s = 0x6113eaa2af96c17271c1163cbd52be4c8c8b928b839b8a6edb5bd0371940d6c8;
        bytes32 qx = 0x513ef4fc9c45e1617933b345cc8e39482e3…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@craterface77
Comment options

Answer selected by craterface77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-protocol Questions relating to the core protocol and how the OP Stack works. discussion-metrics Used by Github Action to gather discussion metrics on the question and answer section.
2 participants