Replies: 1 comment
-
forge-std's deal calls a few functions on your ERC20, it might be inside of those, check traces with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that when I use the
deal()
function to mint some tokens to an address for testing an ERC20 contract theforge test
command gives me theMemoryLimitOOG
error, but suppose I use a mint function implemented in the ERC20 contract itself to mint the tokens thenforge test
works fine.This gives me the above mentioned error while running forge test
This runs perfectly while running forge test
I'm wondering what could be the possible issue. I know the error means enough memory isn't available to carry the task. But why using the
deal()
function requires more memory?Beta Was this translation helpful? Give feedback.
All reactions