mirror of
https://github.com/Instadapp/dsa-polygon-migration.git
synced 2024-07-29 22:27:58 +00:00
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:
parent
d25a048fbd
commit
47d669b666
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user