Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Jul 17, 2023
1 parent 4927fc1 commit 3144c02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test/util/abstract/IOrderBookV3Stub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ abstract contract IOrderBookV3Stub is IOrderBookV3 {
function withdraw(address, uint256, uint256) external pure {
revert("withdraw");
}
}
}
22 changes: 13 additions & 9 deletions test/util/abstract/OrderBookExternalRealTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ abstract contract OrderBookExternalRealTest is Test, IOrderBookV3Stub {

// Deploy the expression deployer.
bytes memory deployerMeta = LibRainterpreterExpressionDeployerNPMeta.authoringMeta();
iDeployer = IExpressionDeployerV1(address(new RainterpreterExpressionDeployerNP(RainterpreterExpressionDeployerConstructionConfig(
address(iInterpreter),
address(iStore),
deployerMeta
))));
iDeployer = IExpressionDeployerV1(
address(
new RainterpreterExpressionDeployerNP(RainterpreterExpressionDeployerConstructionConfig(
address(iInterpreter),
address(iStore),
deployerMeta
))
)
);
// All non-mocked calls will revert.
vm.etch(address(iDeployer), REVERTING_MOCK_BYTECODE);
vm.mockCall(
Expand All @@ -42,14 +46,14 @@ abstract contract OrderBookExternalRealTest is Test, IOrderBookV3Stub {
bytes memory orderbookMeta = vm.readFileBinary(ORDER_BOOK_META_PATH);
console2.log("orderbook meta hash:");
console2.logBytes(abi.encodePacked(keccak256(orderbookMeta)));
iOrderbook =
IOrderBookV3(address(new OrderBook(DeployerDiscoverableMetaV1ConstructionConfig(address(iDeployer), orderbookMeta))));
iOrderbook = IOrderBookV3(
address(new OrderBook(DeployerDiscoverableMetaV1ConstructionConfig(address(iDeployer), orderbookMeta)))
);

iToken0 = IERC20(address(uint160(uint256(keccak256("token0.rain.test")))));
vm.etch(address(iToken0), REVERTING_MOCK_BYTECODE);
iToken1 = IERC20(address(uint160(uint256(keccak256("token1.rain.test")))));
vm.etch(address(iToken1), REVERTING_MOCK_BYTECODE);
vm.resumeGasMetering();
}

}
}

0 comments on commit 3144c02

Please sign in to comment.