Skip to content

Commit

Permalink
fix: added param in rollback event
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju committed May 30, 2024
1 parent 04db715 commit ae63647
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 @@ -75,7 +75,8 @@ module xcall::main {
}

public struct RollbackMessage has copy, drop{
sn:u128
sn:u128,
dapp: String
}

public struct RollbackExecuted has copy, drop{
Expand Down Expand Up @@ -390,7 +391,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})
event::emit(RollbackMessage{sn:sequence_no, dapp: utils::id_to_hex_string(&rollback_data::from(&rollback)) });
};
}

Expand Down

0 comments on commit ae63647

Please sign in to comment.