Expose status from result, remove now-unused api-observable docs (#545)
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user