You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running "cast interface abi.json" does not create an interface with payable functions, even if the functions are marked as payable in the abi. For example, running:
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (0c961f7 2024-04-07T00:19:23.813560836Z)
What command(s) is the bug in?
cast interface
Operating System
Linux
Describe the bug
Running "cast interface abi.json" does not create an interface with payable functions, even if the functions are marked as payable in the abi. For example, running:
$ cast interface <(curl "https://raw.githubusercontent.com/Uniswap/v1-contracts/master/abi/uniswap_exchange.json" 2>/dev/null) | grep addLiquidity
shows
function addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline) external returns (uint256 out);
whereas the abi json file clearly defines it as payable:
The text was updated successfully, but these errors were encountered: