From d2127d38618b3d50ddea2096f0cb4cee1aab4cf2 Mon Sep 17 00:00:00 2001 From: Craig M Date: Mon, 13 Nov 2023 18:47:41 +1300 Subject: [PATCH] integration tests passing --- .../root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol b/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol index fbe36c6e..e008bdb1 100644 --- a/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol +++ b/test/integration/root/withdrawals.t.sol/RootERC20BridgeWithdraw.t.sol @@ -60,9 +60,13 @@ contract RootERC20BridgeWithdrawIntegrationTest is // Need to first map the token. rootBridgeFlowRate.mapToken{value: 1}(token); + //Need to setup the flowRate + rootBridgeFlowRate.setRateControlThreshold(address(token), 1000 ether, 100 ether, 10 ether); + rootBridgeFlowRate.setRateControlThreshold(IMX_TOKEN_ADDRESS, 1000 ether, 100 ether, 10 ether); // And give the bridge some tokens token.transfer(address(rootBridgeFlowRate), 100 ether); imxToken.transfer(address(rootBridgeFlowRate), 100 ether); + } function test_RevertsIf_WithdrawWithInvalidSourceChain() public {