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 phantom events #2189

Merged
merged 6 commits into from
Dec 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
tudor-malene committed Dec 6, 2024
commit 736ccc9cd1604315d0f98f9aa6564c6286df261e
16 changes: 8 additions & 8 deletions go/enclave/storage/enclavedb/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ func WriteTransactions(ctx context.Context, dbtx *sql.Tx, transactions []*core.T
return fmt.Errorf("failed to encode block receipts. Cause: %w", err)
}

args = append(args, transaction.Tx.Hash()) // tx_hash
args = append(args, txBytes) // content
args = append(args, toContractIds[i]) // To
args = append(args, transaction.Tx.Type()) // Type
args = append(args, senderIds[i]) // sender_address
args = append(args, fromIdx+i) // idx
args = append(args, height) // the batch height which contained it
args = append(args, isSynthetic) // is_synthetic if the transaction is a synthetic (internally derived transaction)
args = append(args, transaction.Tx.Hash().Bytes()) // tx_hash
args = append(args, txBytes) // content
args = append(args, toContractIds[i]) // To
args = append(args, transaction.Tx.Type()) // Type
args = append(args, senderIds[i]) // sender_address
args = append(args, fromIdx+i) // idx
args = append(args, height) // the batch height which contained it
args = append(args, isSynthetic) // is_synthetic if the transaction is a synthetic (internally derived transaction)
}
_, err := dbtx.ExecContext(ctx, insert, args...)
if err != nil {
Expand Down
Loading