From 47d669b666cabd3874aee9939adbe0fa718a43e6 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Fri, 9 Apr 2021 05:00:24 +1000 Subject: [PATCH] Update contracts/receivers/aave-v2-receiver/main.sol Resolve compiler bug issue Co-authored-by: Thrilok kumar --- contracts/receivers/aave-v2-receiver/main.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/receivers/aave-v2-receiver/main.sol b/contracts/receivers/aave-v2-receiver/main.sol index b8e7e77..1ed3bd9 100644 --- a/contracts/receivers/aave-v2-receiver/main.sol +++ b/contracts/receivers/aave-v2-receiver/main.sol @@ -160,7 +160,7 @@ contract AaveV2Migrator is MigrateResolver { function migrate(uint _id) external { bytes memory _data = positions[_id]; - require(_data != bytes(0), "already-migrated"); // TODO: How to resolve this + require(_data.length != 0, "already-migrated"); AaveData memory data = abi.decode(_data, (AaveData));