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
Error: VM Exception while processing transaction: revert ReentrancyGuard: reentrant call
at new TransactionExecutionError (node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/errors.ts:93:16)
at BuidlerNode._manageErrors (node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/node.ts:1078:14)
at BuidlerNode.estimateGas (node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/node.ts:605:27)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at EthModule._estimateGasAction (node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/modules/eth.ts:388:9)
at BuidlerEVMProvider.send (node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/provider.ts:82:14)
at EthersProviderWrapper.send (node_modules/@nomiclabs/buidler-ethers/src/ethers-provider-wrapper.ts:13:20)
at async Promise.all (index 1)
at async Promise.all (index 0)
Before the execution of this test, there is only a setup phase where all the necessary contracts are deployed and the evm snapshot is done. The only other test in the mocha suite doesn't involve the LendingPool contract.
The text was updated successfully, but these errors were encountered:
It was not a problem with buidler, but with the version of the ReentrancyGuard contract we were using because of what was solved here OpenZeppelin/openzeppelin-contracts#2171
We were using "@openzeppelin/contracts": "3.0.1" on this new repository, on on that version, the ReentrancyGuard doesn't work correctly on our proxied LendingPool
In a setup with Buidler + ethersjs + Waffle + typechain, I'm trying to run a test file with the following content:
The following error appears when calling
But this can't be related with being attempting a reentrancy on the
LendingPool
contract, as the call todeposit()
is exactly the same as here https://github.com/aave/aave-protocol/blob/13f00958cfac4eaa916555276d243a8e04d40157/contracts/lendingpool/LendingPool.sol#L299 where there is no nested called to theLendingPool
Before the execution of this test, there is only a setup phase where all the necessary contracts are deployed and the evm snapshot is done. The only other test in the mocha suite doesn't involve the
LendingPool
contract.The text was updated successfully, but these errors were encountered: