Skip to content

Commit 8f40524

Browse files
doc fix
1 parent 2e88766 commit 8f40524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solidity/contracts/hooks/axelar/AxelarHook.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ contract AxelarHook is IPostDispatchHook, MailboxClient {
7373
bytes calldata metadata,
7474
bytes calldata message
7575
) external payable {
76-
// ensure messages which were not dispatched are not inserted into the tree
76+
// ensure hook only dispatches messages that are dispatched by the mailbox
7777
bytes32 id = message.id();
78-
require(_isLatestDispatched(id), "message not dispatching");
78+
require(_isLatestDispatched(id), "message not dispatched by mailbox");
7979

8080
bytes memory axelarPayload = _formatPayload(message);
8181
// Pay for gas used by Axelar with ETH

0 commit comments

Comments
 (0)