-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (b44b045 2023-02-21T00:11:41.592203605Z)
What command(s) is the bug in?
forge debug
Operating System
Linux
Describe the bug
Create this snippet
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
contract Mwe {
uint256 value;
function set(uint256 x_) external {
value = x_;
}
function run() external {}
}forge debug src/Mwe.sol --sig "0x60fe47b10000000000000000000000000000000000000000000000000000000000000007" raises
[⠆] Compiling...
No files changed, compilation skipped
Error:
Invalid hex calldata
Context:
- Invalid character 'x' at position 1
but forge debug src/Mwe.sol --sig 60fe47b10000000000000000000000000000000000000000000000000000000000000007 runs fine.
However it's not coherent with what's written here :

Team should either modify forge debug behaviour or acknowledge there's a mistake in the doc. If you choose the second solution, I'll be happy to open a pull request on the doc to fix it :)
Thx for your hard work and theses incredibles tools !
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Completed