Skip to content

Commit

Permalink
fix: message field added in rollback event
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju committed May 31, 2024
1 parent ae63647 commit 36ca68f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/sui/xcall/sources/main.move
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ module xcall::main {

public struct RollbackMessage has copy, drop{
sn:u128,
dapp: String
dapp: String,
data:vector<u8>,
}

public struct RollbackExecuted has copy, drop{
Expand Down Expand Up @@ -391,7 +392,7 @@ module xcall::main {
let mut_rollback = xcall_state::get_mut_rollback(self, sequence_no);
rollback_data::enable_rollback(mut_rollback);
//std::debug::print(&rollback_data::enabled(mut_rollback));
event::emit(RollbackMessage{sn:sequence_no, dapp: utils::id_to_hex_string(&rollback_data::from(&rollback)) });
event::emit(RollbackMessage{sn:sequence_no, dapp: utils::id_to_hex_string(&rollback_data::from(&rollback)), data: rollback.rollback() });
};
}

Expand Down

0 comments on commit 36ca68f

Please sign in to comment.