Skip to content

Commit

Permalink
Update ERC20Outbox.t.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0aa0 committed Jun 18, 2024
1 parent f00ebfb commit fa30403
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/foundry/ERC20Outbox.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ contract ERC20OutboxTest is AbsOutboxTest {

function setUp() public {
// deploy token, bridge and outbox
nativeToken = new ERC20PresetFixedSupply("Appchain Token", "App", 1_000_000, address(this));
IERC20 nativeTokenCode = new ERC20PresetFixedSupply("Appchain Token", "App", 1_000_000, address(this));
nativeToken = IERC20(0xFEfC6BAF87cF3684058D62Da40Ff3A795946Ab06);
vm.etch(address(nativeToken), address(nativeTokenCode).code);

bridge = IBridge(TestUtil.deployProxy(address(new ERC20Bridge())));
erc20Bridge = ERC20Bridge(address(bridge));
outbox = IOutbox(TestUtil.deployProxy(address(new ERC20Outbox())));
Expand Down Expand Up @@ -51,7 +54,9 @@ contract ERC20OutboxTest is AbsOutboxTest {
);

// create msg receiver on L1
ERC20L2ToL1Target target = new ERC20L2ToL1Target();
ERC20L2ToL1Target targetCode = new ERC20L2ToL1Target();
ERC20L2ToL1Target target = ERC20L2ToL1Target(0x87B2d08110B7D50861141D7bBDd49326af3Ecb31);
vm.etch(address(target), address(targetCode).code);
target.setOutbox(address(outbox));

//// execute transaction
Expand Down

0 comments on commit fa30403

Please sign in to comment.