Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
fix read block example
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Nov 20, 2022
1 parent 553082d commit b67c2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/read_block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import * as U from "../util/mod.ts"
const extrinsicsRaw = C.chain.getBlock(C.polkadot)()
.access("block")
.access("extrinsics")
const root = C.extrinsicsDecoded(T.polkadot, extrinsicsRaw)
const root = C.extrinsicsDecoded(T.polkadot)(extrinsicsRaw)

console.log(U.throwIfError(await root.run()))

0 comments on commit b67c2ba

Please sign in to comment.