Skip to content

Commit

Permalink
fix(txs-tracer-core): 🐛 fix result assign
Browse files Browse the repository at this point in the history
fixed result assign on successfull subscription
  • Loading branch information
DavideSegullo committed Mar 7, 2023
1 parent ed08561 commit 7a23c8a
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ export const txTraceMachine = createMachine(
},
onDone: {
target: 'result',
actions: () =>
assign<
TxTraceContext,
DoneInvokeEvent<TxEvent>,
DoneInvokeEvent<TxEvent>
>({ txs: (_, event) => [mapIndexedTx(event.data)] }),
actions: assign<
TxTraceContext,
DoneInvokeEvent<TxEvent>,
DoneInvokeEvent<TxEvent>
>({
txs: (_, event) => [mapIndexedTx(event.data)],
}),
},
onError: {
target: 'connection_error',
Expand Down

0 comments on commit 7a23c8a

Please sign in to comment.