Skip to content

Commit

Permalink
fix: feedback from disco
Browse files Browse the repository at this point in the history
  • Loading branch information
0xteddybear committed Aug 27, 2024
1 parent 5e7eb87 commit 403dc70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.25;
import { OptimismSuperchainERC20 } from "src/L2/OptimismSuperchainERC20.sol";

contract OptimismSuperchainERC20ForToBProperties is OptimismSuperchainERC20 {
/// @notice This is used by CryticERC20ExternalBasicProperties to know
// which properties to test
bool public constant isMintableOrBurnable = true;
uint256 public initialSupply = 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ contract ProtocolProperties is ProtocolHandler, CryticERC20ExternalBasicProperti
fromIndex = bound(fromIndex, 0, allSuperTokens.length - 1);
address recipient = getActorByRawIndex(recipientIndex);
OptimismSuperchainERC20 token = OptimismSuperchainERC20(allSuperTokens[fromIndex]);
uint256 balanceBefore = token.balanceOf(currentActor());
uint256 balanceSenderBefore = token.balanceOf(currentActor());
uint256 balanceRecipeintBefore = token.balanceOf(recipient);
uint256 supplyBefore = token.totalSupply();

MESSENGER.setCrossDomainMessageSender(address(token));
Expand All @@ -163,9 +164,11 @@ contract ProtocolProperties is ProtocolHandler, CryticERC20ExternalBasicProperti
// error due to the crossDomainMessageSender being manually set
assert(false);
}
uint256 balanceAfter = token.balanceOf(currentActor());
uint256 balanceSenderAfter = token.balanceOf(currentActor());
uint256 balanceRecipeintAfter = token.balanceOf(recipient);
uint256 supplyAfter = token.totalSupply();
assert(balanceBefore == balanceAfter);
assert(balanceSenderBefore == balanceSenderAfter);
assert(balanceRecipeintBefore == balanceRecipeintAfter);
assert(supplyBefore == supplyAfter);
}

Expand Down

0 comments on commit 403dc70

Please sign in to comment.