Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
fix missing dispatch info on TxWithEvents
Browse files Browse the repository at this point in the history
  • Loading branch information
XY-Wang committed Jan 18, 2024
1 parent 5d92b4c commit 9211e5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/converters/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ function extrinsicToNamedPrimitive(
export function txWithEventToNamedPrimitive(data: TxWithEvent) {
return {
extrinsic: extrinsicToNamedPrimitive(data.extrinsic as Extrinsic),
events: data.events?.map(eventToNamedPrimitive) || []
events: data.events?.map(eventToNamedPrimitive) || [],
dispatchInfo: data.dispatchInfo?.toHuman(),
dispatchError: data.dispatchError?.toHuman()
};
}

Expand Down

0 comments on commit 9211e5e

Please sign in to comment.