Skip to content

Commit

Permalink
chore(block): wording
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed May 23, 2024
1 parent 9c4ca6e commit 5a806de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ export async function fetchBlock (chain: Chain, ...args: Parameters<Chain["fetch
if (args[0]) {
if (typeof args[0] === 'object') {
if ('height' in args[0]) {
chain.log.debug(`Querying block by height ${args[0].height}`)
chain.log.debug(`Querying block with height ${args[0].height}`)
return chain.getConnection().fetchBlockImpl({
raw: args[0].raw,
height: args[0].height as number
})
} else if ('hash' in args[0]) {
chain.log.debug(`Querying block by hash ${args[0].hash}`)
chain.log.debug(`Querying block with hash ${args[0].hash}`)
return chain.getConnection().fetchBlockImpl({
raw: args[0].raw,
hash: args[0].hash as string,
Expand Down

0 comments on commit 5a806de

Please sign in to comment.