This commit is contained in:
Jaco Greeff
2019-08-27 13:20:29 +02:00
committed by GitHub
parent 2801290e92
commit 9b1aa6aece
17 changed files with 724 additions and 751 deletions
+1 -1
View File
@@ -26,6 +26,6 @@ export default abstract class RxBase implements ContractBase<'rxjs'> {
// cater for substrate 2.x & 1.x (in order)
this.apiContracts = api.tx.contracts || api.tx.contract;
assert(this.apiContracts && this.apiContracts.putCode, `You need to connect to a node with the contracts module, the metadata does not enable api.tx.contracts on this instance`);
assert(this.apiContracts && this.apiContracts.putCode, 'You need to connect to a node with the contracts module, the metadata does not enable api.tx.contracts on this instance');
}
}
+1 -1
View File
@@ -16,7 +16,7 @@ export function typeToString (type: ContractABITypes): string {
} else if (type['Option<T>']) {
return `Option<${typeToString(type['Option<T>'].T)}>`;
} else if (type['Result<T,E>']) {
return `()`; // Result is not supported, but only applicable for returns
return '()'; // Result is not supported, but only applicable for returns
} else if (type['Vec<T>']) {
return `Vec<${typeToString(type['Vec<T>'].T)}>`;
} else if (type['[T;n]']) {