synapsecns/sanguine

View on GitHub
packages/contracts-rfq/test/FastBridgeV2.Src.RefundV1.t.sol

Summary

Maintainability
Test Coverage
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {BridgeTransactionV2Lib, FastBridgeV2SrcTest, IFastBridgeV2} from "./FastBridgeV2.Src.t.sol";

// solhint-disable func-name-mixedcase, no-empty-blocks, ordering
contract FastBridgeV2SrcRefundV1Test is FastBridgeV2SrcTest {
    /// @notice We include an empty "test" function so that this contract does not appear in the coverage report.
    function testFastBridgeV2SrcRefundV1Test() external {}

    function cancel(address caller, IFastBridgeV2.BridgeTransactionV2 memory bridgeTx) public virtual override {
        vm.prank({msgSender: caller, txOrigin: caller});
        fastBridge.refund(BridgeTransactionV2Lib.encodeV2(bridgeTx));
    }
}