Skip to content

Commit 084a2cb

Browse files
chore: Update Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift
1 parent 56fc498 commit 084a2cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Web3Core/EthereumNetwork/Request/APIRequest+Methods.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ extension APIRequest {
8888
return urlRequest
8989
}
9090

91-
public static func send<Result>(_ method: String, parameter: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
92-
let body = RequestBody(method: method, params: parameter)
91+
public static func send<Result>(_ method: String, parameters: [Encodable], with provider: Web3Provider) async throws -> APIResponse<Result> {
92+
let body = RequestBody(method: method, params: parameters)
9393
let uRLRequest = setupRequest(for: body, with: provider)
9494

9595
let data: Data

0 commit comments

Comments
 (0)