Skip to content

Commit

Permalink
fix: process map into an object for blocks in helios-ts (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
karen-sarkisyan authored Jan 23, 2025
1 parent 552bc95 commit 14759c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helios-ts/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ export class HeliosProvider {
return this.#chainId;
}
case "eth_getBlockByNumber": {
return this.#client.get_block_by_number(req.params[0], req.params[1]);
const block = await this.#client.get_block_by_number(req.params[0], req.params[1]);
return mapToObj(block);
}
case "web3_clientVersion": {
return this.#client.client_version();
Expand Down

0 comments on commit 14759c4

Please sign in to comment.