Skip to content

Commit

Permalink
test: not-yet-deployed supertokens can get funds sent to them
Browse files Browse the repository at this point in the history
  • Loading branch information
0xteddybear committed Aug 23, 2024
1 parent e6e715e commit cf9dc9a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ contract ProtocolProperties is ProtocolHandler, CryticERC20ExternalBasicProperti
OptimismSuperchainERC20 sourceToken = OptimismSuperchainERC20(allSuperTokens[fromIndex]);
OptimismSuperchainERC20 destinationToken =
MESSENGER.crossChainMessageReceiver(address(sourceToken), destinationChainId);
require(address(destinationToken) != address(0));
uint256 sourceBalanceBefore = sourceToken.balanceOf(currentActor());
uint256 sourceSupplyBefore = sourceToken.totalSupply();
uint256 destinationBalanceBefore = destinationToken.balanceOf(recipient);
Expand Down Expand Up @@ -237,8 +236,6 @@ contract ProtocolProperties is ProtocolHandler, CryticERC20ExternalBasicProperti
bytes32 deploySalt = MESSENGER.superTokenInitDeploySalts(address(sourceToken));
OptimismSuperchainERC20 destinationToken =
MESSENGER.crossChainMessageReceiver(address(sourceToken), destinationChainId);
// TODO: perhaps the mock should already start ignoring this?
require(address(destinationToken) != address(0));
uint256 sourceBalanceBefore = sourceToken.balanceOf(currentActor());
uint256 sourceSupplyBefore = sourceToken.totalSupply();
uint256 destinationBalanceBefore = destinationToken.balanceOf(recipient);
Expand Down

0 comments on commit cf9dc9a

Please sign in to comment.