Display Option<Type> on RPC toolbox (#1685)

This commit is contained in:
Jaco Greeff 2019-10-02 10:34:24 +02:00 committed by GitHub
parent 99e8464dcb
commit 1f30baba76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ class Selection extends TxComponent<Props, State> {
const params = rpc.params.map(({ isOptional, name, type }): ParamDef => ({
isOptional,
name,
type: getTypeDef(type)
type: getTypeDef(isOptional ? `Option<${type}>` : type)
}));
return (