File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ const addWalletGuardProxy = (provider: any) => {
136136 return Reflect . apply ( target , thisArg , args ) ;
137137 }
138138
139- const params = JSON . parse ( request . params [ 1 ] ) ;
139+ const params = typeof request . params [ 1 ] === 'string' ? JSON . parse ( request . params [ 1 ] ) : request . params [ 1 ] ;
140140 log . info ( { params } , 'Request being sent' ) ;
141141
142142 let signer : string = params [ 0 ] ;
@@ -318,7 +318,7 @@ const addWalletGuardProxy = (provider: any) => {
318318 return Reflect . apply ( target , thisArg , args ) ;
319319 }
320320
321- const params = JSON . parse ( request . params [ 1 ] ) ;
321+ const params = typeof request . params [ 1 ] === 'string' ? JSON . parse ( request . params [ 1 ] ) : request . params [ 1 ] ;
322322 log . info ( { params } , 'Request being sent' ) ;
323323
324324 let signer : string = params [ 0 ] ;
You can’t perform that action at this time.
0 commit comments