Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The send transactions "from" field must be defined! #13

Open
ValerioNeriGit opened this issue Mar 11, 2022 · 1 comment
Open

Comments

@ValerioNeriGit
Copy link

Hi,

I have downloaded the repo and set the infura key but I am getting this error where executing npx truffle test --network mainnet_fork test/test-uniswap.js:

Contract: TestUniswap
  1) "before each" hook for "should pass"


0 passing (608ms)
1 failing

1) Contract: TestUniswap
     "before each" hook for "should pass":
   Error: Returned error: base fee exceeds gas limit
    at Context.<anonymous> (test/test-uniswap.js:22:40)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)

How do I solve it?

Thank you

@Marzel7
Copy link

Marzel7 commented Jul 4, 2022

You can add the gas limit in the transaction call. In hardhat it's let tx = await compoundERC20.supply(8, {gasLimit: 500000}); Pretty sure Truffle does allows the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants