Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

refactor: faucet status to is in block#86

Merged
LeonFLK merged 3 commits intodevelopfrom
dn-faucet-is-in-block
Nov 18, 2020
Merged

refactor: faucet status to is in block#86
LeonFLK merged 3 commits intodevelopfrom
dn-faucet-is-in-block

Conversation

@Dudleyneedham
Copy link
Member

fixes https://github.com/KILTprotocol/ticket/issues/715

Faucet would take 30 seconds, it should now only take a shorter time due to the changes to status.

How to test:

Spin up and try to use the faucet

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)

@@ -76,7 +76,7 @@ export class FaucetController {
0
)
const status = await Blockchain.submitSignedTx(tx)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calling Blockchain submitSignedTx without any SubscriptionOptions, the resolveOn defaults to IS_FINALIZED

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now this waits for IS_FINALIZED, and returns true or false dependent on isInBlock

@LeonFLK LeonFLK merged commit b69c832 into develop Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants