Skip to content

Commit

Permalink
chore: fix nit suggested by ermyas
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithsomraaj committed Sep 11, 2023
1 parent 734a415 commit 7967182
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/integration-tests/RemoteAdapterAdd.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract RemoteAdapterAdd is Setup {
);

bool isTrusted =
MultiMessageReceiver(contractAddress[137][bytes("MMA_RECEIVER")]).isTrustedExecutor(address(420421422));
MultiMessageReceiver(contractAddress[137][bytes("MMA_RECEIVER")]).isTrustedExecutor(adaptersToAdd[0]);
assert(isTrusted);
}
}
5 changes: 3 additions & 2 deletions test/unit-tests/MultiMessageSender.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,14 @@ contract MultiMessageSenderTest is Setup {
vm.startPrank(caller);

uint256 expiration = block.timestamp + EXPIRATION_CONSTANT;
uint256 nativeValue = 2 ether;

uint256 balanceBefore = gac.getRefundAddress().balance;
sender.remoteCall{value: 2 ether}(DST_CHAIN_ID, address(42), bytes("42"), 0, expiration);
sender.remoteCall{value: nativeValue}(DST_CHAIN_ID, address(42), bytes("42"), 0, expiration);

uint256 balanceAfter = gac.getRefundAddress().balance;
uint256 fee = sender.estimateTotalMessageFee(DST_CHAIN_ID, receiver, address(42), bytes("42"), 0);
assertEq(balanceAfter - balanceBefore, 2 ether - fee);
assertEq(balanceAfter - balanceBefore, nativeValue - fee);
}

/// @dev perform remote call with an excluded adapter
Expand Down

0 comments on commit 7967182

Please sign in to comment.