Instantiate EnumType via Object (not Array) (#469)

* Instantiate EnumType via Object (not Array)

* Split decoding into steps... slight simplification

* Use assert for index check

* Add JSON decoding tests
This commit is contained in:
Jaco Greeff
2018-12-14 15:09:21 +01:00
committed by GitHub
parent a8d108d221
commit 4291a49d22
9 changed files with 81 additions and 57 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
},
"devDependencies": {
"@babel/core": "^7.2.0",
"@polkadot/dev": "^0.22.11",
"@polkadot/dev": "^0.22.12",
"@polkadot/ts": "^0.1.43"
}
}