File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ function portis(options: SdkWalletOptions & CommonWalletOptions): WalletModule {
51
51
52
52
provider . sendAsync (
53
53
{
54
+ jsonrpc : '2.0' ,
54
55
method : 'eth_getBalance' ,
55
56
params : [ provider . address , 'latest' ] ,
56
57
id : 1
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ function squarelink(
50
50
51
51
provider . sendAsync (
52
52
{
53
+ jsonrpc : '2.0' ,
53
54
method : 'eth_getBalance' ,
54
55
params : [ instance . accounts [ 0 ] , 'latest' ] ,
55
56
id : 1
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export function getNetwork(provider: any): Promise<number | any> {
7
7
return new Promise ( ( resolve , reject ) => {
8
8
provider . sendAsync (
9
9
{
10
+ jsonrpc : '2.0' ,
10
11
method : 'net_version' ,
11
12
params : [ ] ,
12
13
id : 42
@@ -24,6 +25,7 @@ export function getAddress(provider: any): Promise<string | any> {
24
25
return new Promise ( ( resolve , reject ) => {
25
26
provider . sendAsync (
26
27
{
28
+ jsonrpc : '2.0' ,
27
29
method : 'eth_accounts' ,
28
30
params : [ ] ,
29
31
id : 42
@@ -48,6 +50,7 @@ export function getBalance(provider: any): Promise<string | any> {
48
50
49
51
provider . sendAsync (
50
52
{
53
+ jsonrpc : '2.0' ,
51
54
method : 'eth_getBalance' ,
52
55
params : [ currentAddress , 'latest' ] ,
53
56
id : 42
You can’t perform that action at this time.
0 commit comments