Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@arunjot12

Description

@arunjot12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions