Skip to content

Commit

Permalink
lint: run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Nov 15, 2023
1 parent 3a9360c commit a6c5a9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ const sendTransferTx = async (api: any, to: string, amount: BN, keyring: Keyring
return await new Promise((resolve, reject) => {
api.tx.balances.transfer(to, amount)
.signAndSend(keyring, opt, (result: ISubmittableResult) => {
if (wait == Wait.Yes && result.status.isInBlock) {
if (wait === Wait.Yes && result.status.isInBlock) {
console.log(`✅ Transfer included at block hash: ${String(result.status.asInBlock)}`)
if (typeof (network) !== 'undefined') {
console.log(`🧭 Link to explorer: https://${network as string}.avail.tools/#/explorer/query/${String(result.status.asInBlock)}`)
}
resolve()
} else if (wait == Wait.Final && result.status.isFinalized) {
} else if (wait === Wait.Final && result.status.isFinalized) {
console.log(`✅ Transfer finalized at block hash: ${String(result.status.asFinalized)}`)
if (typeof (network) !== 'undefined') {
console.log(`🧭 Link to explorer: https://${network as string}.avail.tools/#/explorer/query/${String(result.status.asFinalized)}`)
Expand Down Expand Up @@ -96,13 +96,13 @@ const sendBlobTx = async (api: any, blob: string, keyring: KeyringPair, opt: Par
return await new Promise((resolve, reject) => {
api.tx.dataAvailability.submitData(blob)
.signAndSend(keyring, opt, (result: ISubmittableResult) => {
if (wait == Wait.Yes && result.status.isInBlock) {
if (wait === Wait.Yes && result.status.isInBlock) {
console.log(`✅ Blob included at block hash: ${String(result.status.asInBlock)}`)
if (typeof (network) !== 'undefined') {
console.log(`🧭 Link to explorer: https://${network as string}.avail.tools/#/explorer/query/${String(result.status.asInBlock)}`)
}
resolve()
} else if (wait == Wait.Final && result.status.isFinalized) {
} else if (wait === Wait.Final && result.status.isFinalized) {
console.log(`✅ Blob finalized at block hash: ${String(result.status.asFinalized)}`)
if (typeof (network) !== 'undefined') {
console.log(`🧭 Link to explorer: https://${network as string}.avail.tools/#/explorer/query/${String(result.status.asFinalized)}`)
Expand Down

0 comments on commit a6c5a9d

Please sign in to comment.