Skip to content

Strange formatting #12529

@StackOverflowExcept1on

Description

@StackOverflowExcept1on

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

1.4.4

What version of Foundryup are you on?

1.4.0

What command(s) is the bug in?

forge fmt

Operating System

Linux

Describe the bug

    function test_HandleMessageWithTransferMessageAndTokenTypeEthereum() public {
        vm.startPrank(deploymentArguments.deployerAddress);

        address token = address(circleToken);
        uint256 amount = 100 * (10 ** circleToken.decimals());
        bytes32 to = 0;

        uint256 balanceBeforeMint = circleToken.balanceOf(address(erc20Manager));
        IERC20Mintable(address(circleToken)).mint(address(erc20Manager), amount);
        uint256 balanceAfterMint = circleToken.balanceOf(address(erc20Manager));
        assertEq(balanceAfterMint, balanceBeforeMint + amount);

        VaraMessage memory message = VaraMessage({
            nonce: messageNonce++,
            source: deploymentArguments.vftManager,
            destination: address(erc20Manager),
            payload: TransferMessage({
                    sender: to, receiver: deploymentArguments.deployerAddress, token: token, amount: amount
                }).pack()
        });
        // ^^^
        assertEq(messageQueue.isProcessed(message.nonce), false);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions