Adjust support fo US English as per substrate (#811)

* Rename ExtinsicStatus Finalised -> Finalized

* Finalised heads -> Finalized
This commit is contained in:
Jaco Greeff
2019-03-29 14:12:56 +01:00
committed by GitHub
parent 2528ac4bd5
commit 6fef86cc78
26 changed files with 193 additions and 111 deletions
+4 -4
View File
@@ -21,11 +21,11 @@ async function main () {
// Sign and send the transcation
.signAndSend(alice)
// Subscribe to the status updates of the transfer
.subscribe(({ status, type }) => {
if (type === 'Finalised') {
console.log(`Successful transfer of 12345 from Alice to Bob with hash ${status.asFinalised.toHex()}`);
.subscribe(({ status }) => {
if (status.isFinalized) {
console.log(`Successful transfer of 12345 from Alice to Bob with hash ${status.asFinalized.toHex()}`);
} else {
console.log(`Staus of transfer: ${type}`);
console.log(`Staus of transfer: ${status.type}`);
}
});
}