Skip to content

Commit

Permalink
fix for message by hash getter
Browse files Browse the repository at this point in the history
  • Loading branch information
idea404 authored and ukorvl committed Nov 29, 2024
1 parent 8c9b8f7 commit 01c9700
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/clients/PublicClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class PublicClient extends BaseClient {
return {
...res,
value: BigInt(res.value),
gasLimit: BigInt(res.gasLimit),
feeCredit: res.feeCredit ? BigInt(res.feeCredit) : 0n,
gasUsed: hexToBigInt(res.gasUsed),
seqno: hexToBigInt(res.seqno),
index: res.index ? hexToNumber(res.index) : 0,
Expand Down
2 changes: 1 addition & 1 deletion src/types/ProcessedMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type ProcessedMessage = {
blockNumber: number;
from: Address;
gasUsed: bigint;
gasLimit: bigint;
feeCredit: bigint;
hash: Hex;
seqno: bigint;
to: Address;
Expand Down
2 changes: 1 addition & 1 deletion src/types/RPCMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type RPCMessage = {
blockNumber: number;
from: Hex;
gasUsed: Hex;
gasLimit: string;
feeCredit: string;
hash: Hex;
seqno: Hex;
to: Hex;
Expand Down

0 comments on commit 01c9700

Please sign in to comment.