Skip to content

Commit

Permalink
Merge pull request #4 from matter-labs/improve-event
Browse files Browse the repository at this point in the history
feat: add tx number to events
  • Loading branch information
joonazan authored Apr 25, 2024
2 parents 06d2b61 + aa6a44a commit 1bc69da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/instruction_handlers/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fn event(vm: &mut VirtualMachine, instruction: *const Instruction) -> Instructio
key,
value,
is_first,
shard_id: 0, // TODO
tx_number: 0, // TODO
shard_id: 0, // shards currently aren't supported
tx_number: vm.state.transaction_number,
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/modified_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct Event {
pub value: U256,
pub is_first: bool,
pub shard_id: u8,
pub tx_number: u32,
pub tx_number: u16,
}

impl ModifiedWorld {
Expand Down

0 comments on commit 1bc69da

Please sign in to comment.