Open forestswap opened 3 years ago
It's happening because the input arg type where you supply 0xd9638422
is a string, and there seems to be a bug interpreting the hex data that way. You could try removing the leading 0x
or passing it as b"0xd9638422"
instead - but I would test in fork mode first, I'm not sure how these values will get ABI encoded or how Solidity will handle it when converting to bytes.
My own personal feeling is that hex data should be typed as bytes
, so this isn't an area of Brownie that's been adequately tested / thought out. Sorry.
Environment information
brownie
Version: 1.14.2What was wrong?
I'm trying to execute a tx from a Timelock. Brownie seems to have problems with the signature :
This returns the following error:
Any idea how I could solve this ? I tried to add .encode() but it doesn't seem to work.