We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e88766 commit 8f40524Copy full SHA for 8f40524
solidity/contracts/hooks/axelar/AxelarHook.sol
@@ -73,9 +73,9 @@ contract AxelarHook is IPostDispatchHook, MailboxClient {
73
bytes calldata metadata,
74
bytes calldata message
75
) external payable {
76
- // ensure messages which were not dispatched are not inserted into the tree
+ // ensure hook only dispatches messages that are dispatched by the mailbox
77
bytes32 id = message.id();
78
- require(_isLatestDispatched(id), "message not dispatching");
+ require(_isLatestDispatched(id), "message not dispatched by mailbox");
79
80
bytes memory axelarPayload = _formatPayload(message);
81
// Pay for gas used by Axelar with ETH
0 commit comments