Skip to content

Commit

Permalink
fix: change spentAck to ackSpent
Browse files Browse the repository at this point in the history
  • Loading branch information
Asem-Abdelhady authored May 27, 2024
1 parent ea9c306 commit 722ffa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/generalised-incentives/integrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ contract YourContract is ICrossChainReceiver, IMessageEscrowStructs {
// Remember to add your onlyEscrow modifier.
function receiveAck(bytes32 destinationIdentifier, bytes32 messageIdentifier, bytes calldata acknowledgement) onlyEscrow() external {
if (spentAcks[acknowledgement]) revert AckAlreadyDelivered();
if (ackSpent[acknowledgement]) revert AckAlreadyDelivered();
ackSpent[acknowledgement] = true;
// Wow, much ACK!
Expand Down

0 comments on commit 722ffa3

Please sign in to comment.