Expose status from result, remove now-unused api-observable docs (#545)

This commit is contained in:
Jaco Greeff
2019-01-08 12:30:18 +01:00
committed by GitHub
parent cf2d73b69e
commit dc62214aae
17 changed files with 1 additions and 4801 deletions
@@ -40,7 +40,7 @@ async function main () {
api.tx.upgradeKey
.upgrade(code)
.sign(adminPair, adminNonce)
.send(({ events = [], type }) => {
.send(({ events = [], status, type }) => {
console.log('Transaction status:', type);
if (type === 'Finalised') {