Skip to content

Commit

Permalink
removing FloodPlainTestShared
Browse files Browse the repository at this point in the history
  • Loading branch information
amountin committed Jul 12, 2023
1 parent aa349cf commit 2bd828b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion script/DecoderWithRegistry.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract DecoderWithRegistryScript is Script {

event Duplicated(uint256, address);

function run() public {
function run() public virtual {
vm.broadcast();
DecoderWithRegistry decoder = new DecoderWithRegistry();
console.log("Deployed DecoderWithRegistry at", address(decoder));
Expand Down
19 changes: 15 additions & 4 deletions test/flood-plain/decoders/DecoderWithRegistryScript.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,33 @@
pragma solidity 0.8.17;

import {DecoderWithRegistryScript} from "script/DecoderWithRegistry.s.sol";
import {Test} from "forge-std/Test.sol";
import "forge-std/Test.sol";
import {DecoderWithRegistry} from "src/decoders/extensions/DecoderWithRegistry.sol";
import {FloodPlainTestShared, IFloodPlain} from "../utils/FloodPlainTestShared.sol";
import {MockZone} from "../utils/MockZone.sol";
import {MockERC20} from "../utils/MockERC20.sol";
import {MockFulfiller} from "../utils/MockFulfiller.sol";


struct IdToAddress {
uint256 id;
address addr;
}

contract DecoderWithRegistryScriptTest is FloodPlainTestShared, DecoderWithRegistryScript {
contract DecoderWithRegistryScriptTest is DecoderWithRegistryScript {
DecoderWithRegistry registryDecoder;

function setUp() public override {
super.setUp();
vm.prank(msg.sender);
registryDecoder = new DecoderWithRegistry();
MockZone zone = new MockZone();
MockFulfiller fulfiller = new MockFulfiller();
MockERC20 token0 = new MockERC20();
MockERC20 token1 = new MockERC20();
}

function run() public override(DecoderWithRegistryScript) {
super.run();
}

function testAddTokens() public {
Expand Down

0 comments on commit 2bd828b

Please sign in to comment.