From 81060d5ed5d4d417307666ef00e10f1e39b5bc96 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Fri, 18 Mar 2022 15:04:28 +0400 Subject: [PATCH] fixed Aave v2-to-v3 minor fix --- contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol | 2 +- contracts/polygon/connectors/aave/v2-to-v3-import/main.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol b/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol index 24fa0cdf..d8fc54bc 100644 --- a/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol +++ b/contracts/avalanche/connectors/aave/v2-to-v3-import/main.sol @@ -143,7 +143,7 @@ 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); } } diff --git a/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol b/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol index 06a7d43b..44f738c2 100644 --- a/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol +++ b/contracts/polygon/connectors/aave/v2-to-v3-import/main.sol @@ -151,7 +151,7 @@ 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); } }