Skip to content

Commit

Permalink
fix RPC getBlock number (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Oct 30, 2023
1 parent ffea05e commit 1c7c3ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/genesis-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class GenesisProvider implements ProviderInterface {
getHeader = async () => {
return {
blockHash: this.blockHash,
number: 0,
number: '0x0' as HexString,
stateRoot: await this.#stateRoot,
digest: {
logs: [],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/rpc/substrate/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const chain_getBlock: Handler<
}
return {
block: {
header: await block.header,
header: processHeader(await block.header),
extrinsics: await block.extrinsics,
},
justifications: null,
Expand Down

0 comments on commit 1c7c3ee

Please sign in to comment.