Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasDotSol committed Dec 14, 2023
1 parent 2e88766 commit 8f40524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solidity/contracts/hooks/axelar/AxelarHook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ contract AxelarHook is IPostDispatchHook, MailboxClient {
bytes calldata metadata,
bytes calldata message
) external payable {
// ensure messages which were not dispatched are not inserted into the tree
// ensure hook only dispatches messages that are dispatched by the mailbox
bytes32 id = message.id();
require(_isLatestDispatched(id), "message not dispatching");
require(_isLatestDispatched(id), "message not dispatched by mailbox");

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

0 comments on commit 8f40524

Please sign in to comment.