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
Other functions in the same ABI like addLiquidity return correct data. I tried leaving the mehod id in, but it makes no difference. Sorry for bad formatting.
The text was updated successfully, but these errors were encountered:
I'm trying to decode UniswapRouter functions. Decoding the method
swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline)
returns
./ethabi decode params -t '(uint256,uint256,address[],address,uint256)' 0000000000000000000000000000000000000000000000b0edf30260784f1a08000000000000000000000000000000000000000000000000264439d42c24ad2600000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000ca274cc0405bd4317adc3cd5975265be503f1ee50000000000000000000000000000000000000000000000000000017c04528c94000000000000000000000000000000000000000000000000000000000000000200000000000000000000000001c2086facfd7aa38f69a6bd8c91bef3bb5adfca000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7 Error: Invalid data
while the same works fine using web3.js:
3263773007792569260552,2757392455294037286,[0x01C2086faCFD7aA38f69A6Bd8C91BEF3BB5adFCa,0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7],0xCA274cc0405Bd4317Adc3Cd5975265be503f1ee5,1632160091284
Other functions in the same ABI like addLiquidity return correct data. I tried leaving the mehod id in, but it makes no difference. Sorry for bad formatting.
The text was updated successfully, but these errors were encountered: