File tree 1 file changed +2
-1
lines changed
packages/multichain/src/middlewares
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ const multichainMethodCallValidator = async (
57
57
params : JsonRpcParams | undefined ,
58
58
) => {
59
59
const dereffed = await dereffedPromise ;
60
+
60
61
const methodToCheck = dereffed . methods . find (
61
62
( m ) => ( m as unknown as ContentDescriptorObject ) . name === method ,
62
63
) ;
@@ -77,13 +78,13 @@ const multichainMethodCallValidator = async (
77
78
} ,
78
79
] ;
79
80
}
80
-
81
81
// check each param and aggregate errors
82
82
( methodToCheck as unknown as MethodObject ) . params . forEach ( ( param , i ) => {
83
83
let paramToCheck : Json | undefined ;
84
84
const p = param as ContentDescriptorObject ;
85
85
if ( isObject ( params ) ) {
86
86
paramToCheck = params [ p . name ] ;
87
+ // TODO: according to the spec all of the multichain method params are objects, should this be removed?
87
88
} else if ( params && Array . isArray ( params ) ) {
88
89
paramToCheck = params [ i ] ;
89
90
} else {
You can’t perform that action at this time.
0 commit comments