Skip to content

Commit

Permalink
fix createblock (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded authored Jan 22, 2024
1 parent 080d8a2 commit fc2ffca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-olives-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonwall/cli": patch
---

CreateBlock fix
4 changes: 2 additions & 2 deletions packages/cli/src/internal/foundations/devModeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export async function createDevBlock<
section == "ethereum" &&
method == "Executed" &&
data[2].toString() == result.hash
)!
.phase!.asApplyExtrinsic!.toString()
)
?.phase?.asApplyExtrinsic?.toString() || "-1"
)
: blockData.block.extrinsics.findIndex((ext) => ext.hash.toHex() == result.hash);
// We retrieve the events associated with the extrinsic
Expand Down

0 comments on commit fc2ffca

Please sign in to comment.