From 980d1ea4b90566388f7d71cfaea1d28325ec5968 Mon Sep 17 00:00:00 2001 From: ChiTimesChi <88190723+ChiTimesChi@users.noreply.github.com> Date: Mon, 19 Feb 2024 12:34:41 +0000 Subject: [PATCH] Chore: cleanup --- .../test/InterchainClientV1Test.t.sol | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/contracts-communication/test/InterchainClientV1Test.t.sol b/packages/contracts-communication/test/InterchainClientV1Test.t.sol index b6fdca9a82..f9751bb624 100644 --- a/packages/contracts-communication/test/InterchainClientV1Test.t.sol +++ b/packages/contracts-communication/test/InterchainClientV1Test.t.sol @@ -1,19 +1,20 @@ +// SPDX-License-Identifier: MIT pragma solidity 0.8.20; -import "forge-std/Test.sol"; import {InterchainClientV1} from "../contracts/InterchainClientV1.sol"; -import "../contracts/InterchainDB.sol"; -import {InterchainAppMock} from "./mocks/InterchainAppMock.sol"; +import {InterchainDB} from "../contracts/InterchainDB.sol"; -import {InterchainModuleMock} from "./mocks/InterchainModuleMock.sol"; import {InterchainEntry} from "../contracts/libs/InterchainEntry.sol"; - -import {TypeCasts} from "../contracts/libs/TypeCasts.sol"; - import {OptionsLib} from "../contracts/libs/Options.sol"; +import {TypeCasts} from "../contracts/libs/TypeCasts.sol"; import {InterchainClientV1Harness} from "./harnesses/InterchainClientV1Harness.sol"; +import {InterchainAppMock} from "./mocks/InterchainAppMock.sol"; +import {InterchainModuleMock} from "./mocks/InterchainModuleMock.sol"; + +import {Test} from "forge-std/Test.sol"; + contract InterchainClientV1Test is Test { InterchainClientV1Harness icClient; InterchainDB icDB; @@ -109,7 +110,9 @@ contract InterchainClientV1Test is Test { bytes32 transactionID = keccak256( abi.encode(TypeCasts.addressToBytes32(msg.sender), block.chainid, receiver, DST_CHAIN_ID, message, nonce) ); - icClient.interchainSend{value: 1}(receiver, DST_CHAIN_ID, message, options, srcModules); + icClient.interchainSend{value: totalModuleFees}(receiver, DST_CHAIN_ID, message, options, srcModules); + // TODO: should check the transaction ID? + transactionID; } function test_interchainReceive() public {