-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
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
Labels
Type
Projects
Status
Backlog