Doc links, typos, publish (#1977)

This commit is contained in:
Jaco Greeff
2020-02-29 10:28:47 +01:00
committed by GitHub
parent 8af58fcea3
commit bc2b0d513c
7 changed files with 375 additions and 115 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ import type { Balance } from '@polkadot/types/interfaces';
...
// unwrap out option into a zero Balance whn not found
// (This can be done via `.unwrapOrDefault()`, which does the same underlying)
const balance: Balance = balanceOpt.unwrapOr(api.createType('Balance'));
```
@@ -45,7 +46,7 @@ api.createType('Balance', 123);
// via registry (`.registry` is on all API and Codec objects)
api.registry.createType('Balance', 123n);
// via the low-level approach
// via the low-level approach (not recommended)
createType(api.registry, 'Balance', '123');
```