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

default trace return wrong input for precompiled #3738

Closed
tclemos opened this issue Jul 22, 2024 · 0 comments · Fixed by #3740
Closed

default trace return wrong input for precompiled #3738

tclemos opened this issue Jul 22, 2024 · 0 comments · Fixed by #3740
Assignees
Labels
bug Something isn't working rpc
Milestone

Comments

@tclemos
Copy link
Contributor

tclemos commented Jul 22, 2024

steps to reproduce:

  • deploys this SC
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

contract Sha {
    function hash() public {
        sha256("hello world");
    }
}
  • send a tx calling hash()
  • trace the tx
  • field for the STATICALL for the precompiled must be "input":"0x68656c6c6f20776f726c64"
@tclemos tclemos added bug Something isn't working rpc labels Jul 22, 2024
@tclemos tclemos added this to the v0.7.1 milestone Jul 22, 2024
@tclemos tclemos self-assigned this Jul 22, 2024
@tclemos tclemos linked a pull request Jul 22, 2024 that will close this issue
@tclemos tclemos closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rpc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant