Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Force params in web3 request #3879

Merged
merged 1 commit into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion packages/db/src/meta/process/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface GraphQlRequest {
export interface Web3Request {
type: "web3";
method: string;
params?: any[];
params: any[];
}

export type ProcessRequest<
Expand Down
3 changes: 2 additions & 1 deletion packages/db/src/network/fetch/networkId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export function* process(): Process<any, { web3: "net_version" }> {

const response = yield {
type: "web3",
method: "net_version"
method: "net_version",
params: []
};

const { result } = response;
Expand Down