File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " sumer-sdk" ,
3- "version" : " 6.0.0 " ,
3+ "version" : " 6.0.1 " ,
44 "description" : " SDK that allows observing EVM-based provider requests" ,
55 "author" :
" Sumer Communities SL (by Wagmi Venture Studio) <[email protected] >" ,
66 "license" : " AGPL-3.0-only" ,
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ export abstract class Observer {
2424
2525 protected getMethodArgs ( { methodArgs } : TargetExecution ) : string [ ] | Record < string , string > {
2626 if ( methodArgs && methodArgs . length && methodArgs [ 0 ] [ 'params' ] ) {
27- if ( methodArgs [ 0 ] [ 'params' ] . length > 1 ) {
28- return methodArgs [ 0 ] [ 'params' ] . filter ( ( p : unknown ) => typeof p === 'string' )
27+ if ( methodArgs [ 0 ] [ 'params' ] . length >= 1 ) {
28+ return methodArgs [ 0 ] [ 'params' ] . map ( ( p : unknown ) =>
29+ typeof p === 'string' ? p : JSON . stringify ( p ) ,
30+ )
2931 }
3032 return methodArgs [ 0 ] [ 'params' ] [ 0 ]
3133 }
Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ export class TransactionObserver extends Observer {
1616 data : methodArgs [ 'data' ] ?? undefined ,
1717 gas : methodArgs [ 'gas' ] ?? undefined ,
1818 rpcMethodName : this . getMethodName ( execution ) ,
19- ...( Array . isArray ( methodArgs ) && {
20- rpcMethodArgs : methodArgs ,
21- } ) ,
22-
19+ rpcMethodArgs : Array . isArray ( methodArgs ) ? methodArgs : [ JSON . stringify ( methodArgs ) ] ,
2320 error : this . getTransactionError ( result ) ,
2421 metadata : this . getMetadata ( execution ) ,
2522 } )
You can’t perform that action at this time.
0 commit comments