Skip to content

Commit

Permalink
chore: rename error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithsomraaj committed Oct 5, 2023
1 parent 068a480 commit c18dc67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/MultiBridgeMessageSender.sol
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ contract MultiBridgeMessageSender {
_dispatchMessages(adapters, mmaReceiver, _args.dstChainId, message, _args.fees);

if (successCount == 0) {
revert Error.MESSAGE_BRIDGE_FAILURE();
revert Error.MULTI_MESSAGE_SEND_FAILED();
}

emit MultiBridgeMessageSent(
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Error.sol
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ library Error {
error NOT_APPROVED_BY_GATEWAY();

/// @dev is thrown if all message bridges fail
error MESSAGE_BRIDGE_FAILURE();
error MULTI_MESSAGE_SEND_FAILED();

/*/////////////////////////////////////////////////////////////////
TIMELOCK ERRORS
Expand Down
4 changes: 2 additions & 2 deletions test/unit-tests/MultiBridgeMessageSender.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ contract MultiBridgeMessageSenderTest is Setup {
}

/// @dev if all message bridges fail (not pay enough fees)
function test_all_message_bridge_failure() public {
function test_all_MULTI_MESSAGE_SEND_FAILED() public {
vm.startPrank(caller);

vm.expectRevert(Error.MESSAGE_BRIDGE_FAILURE.selector);
vm.expectRevert(Error.MULTI_MESSAGE_SEND_FAILED.selector);
sender.remoteCall(
DST_CHAIN_ID, address(42), bytes("42"), 0, EXPIRATION_CONSTANT, refundAddress, new uint256[](2)
);
Expand Down

0 comments on commit c18dc67

Please sign in to comment.