@metaverse-network-sdk/api
Advanced tools
Comparing version 0.0.1-51-2 to 0.0.1-51-3
@@ -233,10 +233,3 @@ "use strict"; | ||
} | ||
if (res.isFinalized && txErrors.length == 0 && !hasBatchErrors) { | ||
setStatus(`😉 Finalized. Block hash: ${res.status.asFinalized.toString()}`); | ||
setIsLoading(false); | ||
inBlock.resolve({ events: res.events, blockHash: res.status.asFinalized, txHash: signed.hash }); | ||
finalized.resolve({ events: res.events, blockHash: res.status.asFinalized, txHash: signed.hash }); | ||
sendPromise.then((unsup) => unsup()); | ||
} | ||
else if (((res.isFinalized || res.isInBlock) && txErrors.length > 0) || hasBatchErrors) { | ||
if (((res.isInBlock) && txErrors.length > 0) || hasBatchErrors) { | ||
console.log(`Failed. Block hash: ${res.status.asFinalized.toHex()}`); | ||
@@ -292,6 +285,5 @@ let err = ""; | ||
setStatus(`Transaction already included in Block. Waiting for Finality`); | ||
if (!options.waitToFinalized) { | ||
setIsLoading(false); | ||
inBlock.resolve({ events: res.events, blockHash: res.status.asInBlock, txHash: signed.hash }); | ||
} | ||
setIsLoading(false); | ||
inBlock.resolve({ events: res.events, blockHash: res.status.asInBlock, txHash: signed.hash }); | ||
sendPromise.then((unsup) => unsup()); | ||
} | ||
@@ -298,0 +290,0 @@ else if (res.status.isInvalid || |
{ | ||
"name": "@metaverse-network-sdk/api", | ||
"version": "0.0.1-51-2", | ||
"version": "0.0.1-51-3", | ||
"description": "Extended API library for polkadot.js", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31571
458