Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/use-gateway-v2
Browse files Browse the repository at this point in the history
milapsheth authored May 26, 2024
2 parents c8326b8 + cd61852 commit e15cd02
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:

- name: Download and Install Sui
env:
SUI_VERSION: devnet-v1.25.1
SUI_VERSION: devnet-v1.25.0
run: |
curl -L -o sui-${SUI_VERSION}-ubuntu-x86_64.tgz https://github.com/MystenLabs/sui/releases/download/${SUI_VERSION}/sui-${SUI_VERSION}-ubuntu-x86_64.tgz
tar -xvf sui-${SUI_VERSION}-ubuntu-x86_64.tgz
9 changes: 9 additions & 0 deletions move/axelar_gateway/sources/gateway.move
Original file line number Diff line number Diff line change
@@ -104,6 +104,11 @@ module axelar_gateway::gateway {
message: message::Message,
}

/// Emitted when a message is taken to be executed by a channel.
public struct MessageExecuted has copy, drop {
message: message::Message,
}

// -----
// Setup
// -----
@@ -270,6 +275,10 @@ module axelar_gateway::gateway {

self.messages[command_id].status = bytes32::new(MESSAGE_EXECUTED);

sui::event::emit(MessageExecuted {
message,
});

// Friend only.
channel::create_approved_message(source_chain, message_id, source_address, destination_id, payload)
}

0 comments on commit e15cd02

Please sign in to comment.