Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ Released with 1.0.0-beta.37 code base.
- Update the documentation for `methods.myMethod.estimateGas` (#4702)
- Fix typos in REVIEW.md and TESTING.md (#4691)
- Fix encoding for "0x" string values (#4512)
- Fix jsonrpc payload and response types (#4743) (#4761)


### Changed
Expand Down
10 changes: 7 additions & 3 deletions packages/web3-core-helpers/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,19 @@ export interface RequestItem {
export interface JsonRpcPayload {
jsonrpc: string;
method: string;
params: any[];
params?: any[];
id?: string | number;
}

export interface JsonRpcResponse {
jsonrpc: string;
id: number;
id: string | number;
result?: any;
error?: string;
error?: {
readonly code?: number;
readonly data?: unknown;
readonly message: string;
};
}

export interface RevertInstructionError extends Error {
Expand Down