can anyone who use Foundry help me out? D:
I'm still using HH as daily framework but... everytime i try to love Foundry he pushes me back.

I'm pretty stuck now with what seems a general error... but it's from the test contract itself.
If i don't do the last call on the test, it pass.
That specific call doesn't fail as you can see from the trace
Tried from scratch (forge init), searched in git issues, downloaded 7 different versions, nada.
The test & the contract itself works as expected, the only problem is this random revert. The test itself is completed and pass

Jul 21, 2023, 12:38 PM
same exact error in a simplified version (project started from forge init + library install + remapping)
Jul 21, 2023, 12:39 PM
Include receive in the test contract
Jul 21, 2023, 12:40 PM
already done, in the first screen the contract doesn't touch ETH
but i've tried in the second one, same error
the call itself work, if i remove the receive() on the second test, i get the expected revert
Jul 21, 2023, 12:42 PM
Maybe try using a different token. Seems like swap part completes successfully
Jul 21, 2023, 12:46 PM
it's a very basic ERC20 token :\
Jul 21, 2023, 12:48 PM
from the screenshot the errors trigger in an upper level
Jul 21, 2023, 1:10 PM
the upper level is the test function in the test contract
tip: when something strange happens without any logic reason, check your interfaces
šŸ˜
Jul 31, 2023, 3:48 AM
noted
Jul 31, 2023, 11:53 AM

Ā© 2024 Draquery.com All rights reserved.