mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Update hardhat to latest version. Add timeout to advanceTimeAndBlock function.
This commit is contained in:
parent
a4a6d3d437
commit
3f6dd8a0f0
|
@ -62,8 +62,11 @@ export const advanceTimeAndBlock = async function (forwardTime: number) {
|
||||||
}
|
}
|
||||||
const currentTime = currentBlock.timestamp;
|
const currentTime = currentBlock.timestamp;
|
||||||
const futureTime = currentTime + forwardTime;
|
const futureTime = currentTime + forwardTime;
|
||||||
|
await new Promise((r) => setTimeout(r, 500));
|
||||||
await DRE.ethers.provider.send('evm_setNextBlockTimestamp', [futureTime]);
|
await DRE.ethers.provider.send('evm_setNextBlockTimestamp', [futureTime]);
|
||||||
|
await new Promise((r) => setTimeout(r, 500));
|
||||||
await DRE.ethers.provider.send('evm_mine', []);
|
await DRE.ethers.provider.send('evm_mine', []);
|
||||||
|
await new Promise((r) => setTimeout(r, 500));
|
||||||
};
|
};
|
||||||
|
|
||||||
export const waitForTx = async (tx: ContractTransaction) => await tx.wait(1);
|
export const waitForTx = async (tx: ContractTransaction) => await tx.wait(1);
|
||||||
|
|
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -15287,14 +15287,14 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"hardhat": {
|
"hardhat": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.0.8.tgz",
|
||||||
"integrity": "sha512-mDygAl+1qd5KBdXQBfc3R5XmC/rVdYYbEuOTSQY3rlncVu9gfockZVDsHtAMPw/FiBIRMApLcOceK7D1XQmHRw==",
|
"integrity": "sha512-2tDAtOfshrBzP103dx7PQrhTwv2sqjhQStZAPwkkQTic25o2EH6HYE2++LuOG98YwqSjr0WvhvdBvKl3dCSkYA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@nomiclabs/ethereumjs-vm": "^4.1.1",
|
"@nomiclabs/ethereumjs-vm": "^4.1.1",
|
||||||
"@sentry/node": "^5.18.1",
|
"@sentry/node": "^5.18.1",
|
||||||
"@solidity-parser/parser": "^0.7.1",
|
"@solidity-parser/parser": "^0.11.0",
|
||||||
"@types/bn.js": "^4.11.5",
|
"@types/bn.js": "^4.11.5",
|
||||||
"@types/lru-cache": "^5.1.0",
|
"@types/lru-cache": "^5.1.0",
|
||||||
"abort-controller": "^3.0.0",
|
"abort-controller": "^3.0.0",
|
||||||
|
@ -15339,9 +15339,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@solidity-parser/parser": {
|
"@solidity-parser/parser": {
|
||||||
"version": "0.7.1",
|
"version": "0.11.1",
|
||||||
"resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.7.1.tgz",
|
"resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.11.1.tgz",
|
||||||
"integrity": "sha512-5ma2uuwPAEX1TPl2rAPAAuGlBkKnn2oUKQvnhTFlDIB8U/KDWX77FpHtL6Rcz+OwqSCWx9IClxACgyIEJ/GhIw==",
|
"integrity": "sha512-H8BSBoKE8EubJa0ONqecA2TviT3TnHeC4NpgnAHSUiuhZoQBfPB4L2P9bs8R6AoTW10Endvh3vc+fomVMIDIYQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"commander": {
|
"commander": {
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
"ethereumjs-util": "7.0.2",
|
"ethereumjs-util": "7.0.2",
|
||||||
"ethers": "^5.0.19",
|
"ethers": "^5.0.19",
|
||||||
"globby": "^11.0.1",
|
"globby": "^11.0.1",
|
||||||
"hardhat": "^2.0.2",
|
"hardhat": "^2.0.8",
|
||||||
"hardhat-gas-reporter": "^1.0.0",
|
"hardhat-gas-reporter": "^1.0.0",
|
||||||
"hardhat-typechain": "^0.3.3",
|
"hardhat-typechain": "^0.3.3",
|
||||||
"husky": "^4.2.5",
|
"husky": "^4.2.5",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user