quick workaround of tuple bug (#1038)

This commit is contained in:
Xiliang Chen 2019-04-26 21:09:04 +12:00 committed by Stefanie Doll
parent 62331a0ea2
commit 6e4ce5c5ff

View File

@ -109,7 +109,7 @@ export default function withCall<P extends ApiProps> (endpoint: string, { at, at
const values = isUndefined(paramValue)
? params
: params.concat(
Array.isArray(paramValue)
(Array.isArray(paramValue) && !(paramValue as any).toU8a)
? paramValue
: [paramValue]
);