Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly set transaction index #499

Merged
merged 1 commit into from
Dec 17, 2024
Merged

fix: properly set transaction index #499

merged 1 commit into from
Dec 17, 2024

Conversation

Romsters
Copy link
Contributor

What 💻

  • Properly set transaction index.

Why ✋

  • Since block can have many transactions using 0 as tx index is no longer valid.

Closes #498

@Romsters Romsters requested a review from a team as a code owner December 17, 2024 19:52
@Romsters Romsters merged commit 100e3f3 into main Dec 17, 2024
13 checks passed
@Romsters Romsters deleted the add-transaction-index branch December 17, 2024 21:01
@@ -1655,6 +1655,7 @@ impl InMemoryNode {
pub fn run_l2_tx<W: WriteStorage, H: HistoryMode>(
&self,
l2_tx: L2Tx,
l2_tx_index: U64,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO we shouldn't operate on API types inside the system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transaction index is always set to 0
3 participants