Merge pull request #195 from Instadapp/aave-v2-v3-import-fix

Fixed Aave V2 to V3 migration connector
This commit is contained in:
Thrilok kumar 2022-03-20 00:53:36 +04:00 committed by GitHub
commit d4870b3e96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View File

@ -143,7 +143,11 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
payable
returns (string memory _eventName, bytes memory _eventParam)
{
(_eventName, _eventParam) = _importAave(msg.sender, inputData, false);
(_eventName, _eventParam) = _importAave(
address(this),
inputData,
false
);
}
}

View File

@ -151,7 +151,11 @@ contract _AaveV2ToV3MigrationResolver is _AaveHelper {
payable
returns (string memory _eventName, bytes memory _eventParam)
{
(_eventName, _eventParam) = _importAave(msg.sender, inputData, false);
(_eventName, _eventParam) = _importAave(
address(this),
inputData,
false
);
}
}

View File

@ -52,8 +52,8 @@ const networkGasPriceConfig: Record<string, string> = {
function createConfig(network: string) {
return {
url: getNetworkUrl(network),
accounts: !!PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : { mnemonic }
// gasPrice: 1000000, // 0.0001 GWEI
accounts: !!PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : { mnemonic },
gasPrice: 35 * 1e9 // 0.0001 GWEI
};
}
@ -126,7 +126,7 @@ const config: HardhatUserConfig = {
tests: "./test"
},
etherscan: {
apiKey: getScanApiKey(String(process.env.networkType))
apiKey: "CZ1YB396AX4XAQ489Y4NJ33SJBCYZZD1VS"
},
typechain: {
outDir: "typechain",

View File

@ -35,7 +35,7 @@
"chalk": "^5.0.0",
"dotenv": "^10.0.0",
"hardhat-docgen": "^1.2.0",
"inquirer": "^8.2.0",
"inquirer": "^8.2.0",
"minimist": "^1.2.5",
"solc": "^0.8.10",
"typechain": "^6.0.5"