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
I am trying to test 1inch getExpectedReturn function from my Solidity contract. I deploy my contract on the Mainnet forked with Ganache via Remix. The entire contract is pretty simple and looks as follows:
The contract compiles well but after deployment and running the getreturn function I always get the cryptic "VM Exception while processing transaction: revert" error. I also tried to use the call function:
function getreturn_test () public {
ONE_SPLIT_ADDRESS.call(abi.encodeWithSignature(
"getExpectedReturn(address,address,uint256,uint256,uint256)",
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48,
0x6B175474E89094C44Da98b954EedeAC495271d0F,
uint(100), uint(10), uint(0)));
}
It does not work either. I can't find any explanation why this does not work in my contract. Are these functions implemented correctly?
The text was updated successfully, but these errors were encountered:
I am trying to test 1inch getExpectedReturn function from my Solidity contract. I deploy my contract on the Mainnet forked with Ganache via Remix. The entire contract is pretty simple and looks as follows:
The contract compiles well but after deployment and running the getreturn function I always get the cryptic "VM Exception while processing transaction: revert" error. I also tried to use the call function:
It does not work either. I can't find any explanation why this does not work in my contract. Are these functions implemented correctly?
The text was updated successfully, but these errors were encountered: