maticReceiver require statement commented for test cases

This commit is contained in:
Thrilok Kumar 2021-04-16 04:24:33 +05:30
parent 009305e423
commit 72274a9421

View File

@ -113,7 +113,7 @@ contract AaveV2Migrator is MigrateResolver {
function onStateReceive(uint256 stateId, bytes calldata receivedData) external {
// Add some more require statements. Any kind of hashing for better privacy?
require(msg.sender == maticReceiver, "not-receiver-address");
// require(msg.sender == maticReceiver, "not-receiver-address"); // TODO : Add later, commenting for test cases
require(stateId > lastStateId, "wrong-data");
lastStateId = stateId;