Skip to content

Commit

Permalink
fix: restore rpc node url to provided one
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Nov 21, 2022
1 parent cb4ede3 commit 2e1d87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class RpcProvider implements ProviderInterface {
}

public fetch(method: any, params: any): Promise<any> {
return fetch(`${this.nodeUrl}/rpc/v0.2`, {
return fetch(this.nodeUrl, {
method: 'POST',
body: stringify({ method, jsonrpc: '2.0', params, id: 0 }),
headers: this.headers,
Expand Down

0 comments on commit 2e1d87a

Please sign in to comment.