more typos (#2532)

This commit is contained in:
Hamza Tokuchi
2020-08-30 12:24:50 +02:00
committed by GitHub
parent 7876bb9ced
commit f748fcd46d
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ With the conversions done in the API, there are limited reasons to create types
import type { Balance } from '@polkadot/types/interfaces';
...
// unwrap out option into a zero Balance whn not found
// unwrap out option into a zero Balance when not found
// (This can be done via `.unwrapOrDefault()`, which does the same underlying)
const balance: Balance = balanceOpt.unwrapOr(api.createType('Balance'));
```