Support for Option<bool> 1-byte encoding (#4852)

* Support for Option<bool> 1-byte encoding

* Adjust for linting
This commit is contained in:
Jaco
2022-05-26 08:53:38 +03:00
committed by GitHub
parent 4dad961106
commit 5a90d02f1f
11 changed files with 174 additions and 11 deletions
@@ -20,7 +20,7 @@ function traverseLinks (api: DeriveApi, head: AccountId32 | string): Observable<
),
tap((node: Option<PalletBagsListListNode>): void => {
setTimeout((): void => {
node.isSome && (node.value as PalletBagsListListNode).next.isSome
node.isSome && node.value.next.isSome
? subject.next(node.unwrap().next.unwrap())
: subject.complete();
}, 0);