Skip to content

Commit

Permalink
fix: empty events using numscript (formancehq#431)
Browse files Browse the repository at this point in the history
fix: empty event
  • Loading branch information
gfyrag authored and flemzord committed Feb 10, 2023
1 parent 203b679 commit 565dedc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ledger/execute_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func (l *Ledger) ExecuteScript(ctx context.Context, preview bool, script core.Sc
}

vAggr := NewVolumeAggregator(l)
txs := make([]core.ExpandedTransaction, 0)
var nextTxId uint64
if lastTx != nil {
nextTxId = lastTx.ID + 1
Expand Down Expand Up @@ -291,7 +290,7 @@ func (l *Ledger) ExecuteScript(ctx context.Context, preview bool, script core.Sc
}
}

l.monitor.CommittedTransactions(ctx, l.store.Name(), txs...)
l.monitor.CommittedTransactions(ctx, l.store.Name(), tx)
if addOps != nil && addOps.SetAccountMeta != nil {
for addr, m := range addOps.SetAccountMeta {
l.monitor.SavedMetadata(ctx,
Expand Down

0 comments on commit 565dedc

Please sign in to comment.