Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to get integer (uint) log for in revert #1582

Open
arunjot12 opened this issue Dec 31, 2024 · 0 comments
Open

Not able to get integer (uint) log for in revert #1582

arunjot12 opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@arunjot12
Copy link

Description

I am deploying ERC 4337 account abstraction entry point contract (version 6) and it has function simulateValidation that reverts ValidationResult and has uint data type, while calling this function I am unable to get the values in ValidationResult due to which my dapp is stuck at that point. I tried it with a simple contract that returns a uint value to check if it is the problem with ERC 4337 or frontier still got the same error.

Steps to Reproduce

  1. Go to 'remix'
  2. Paste the following contract in a new abc.sol file:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;


contract MyToken  {
    constructor() {}
    error dd(uint f);
    error cc(uint v, string bb);
    function mint() public pure {
        // _mint(to, amount);
        revert dd(5);
    }

    function get(uint a) external pure {
        require(a>6, "more err");
    }

    function set() external pure {
        revert("ffffff");
    }

    function met() external pure {
        revert cc(6, "nnnnnn");
    }
}
  1. Deploy the contract using solidity compiler version 0.8.17
  2. Now call the mint function

Expected vs. Actual Behavior

Expected behaviour is as shown in the below screenshot:
Screenshot from 2024-12-31 12-55-22

But when I am deploying using the frontier client I am not getting any logs as you can see in the following screenshot:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant