Update contracts/receivers/aave-v2-receiver/main.sol

Resolve compiler bug issue

Co-authored-by: Thrilok kumar <thrilok2000@gmail.com>
This commit is contained in:
Samyak Jain 2021-04-09 05:00:24 +10:00 committed by GitHub
parent d25a048fbd
commit 47d669b666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));