Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sendExtrinsic.ts... #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ken-futureverse
Copy link
Contributor

Summary

Add InBlock as an acceptable state, to resolve the promise as quickly as possible, in case waiting for Finalized state taking too long.

Checklist

  • Add description
  • Tag related issue(s)

Add `InBlock` as an acceptable state, to resolve the promise as quickly as possible, in case waiting for `Finalized` state taking too long.
Comment on lines +48 to +50
const blockHash: status.isFinalized
? status.asFinalized.toString()
: status.asInBlock.toString(),

Choose a reason for hiding this comment

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

I think something is missing here, instead of using : use =

Suggested change
const blockHash: status.isFinalized
? status.asFinalized.toString()
: status.asInBlock.toString(),
const blockHash = status.isFinalized
? status.asFinalized.toString()
: status.asInBlock.toString(),

Copy link

@rupolygon rupolygon left a comment

Choose a reason for hiding this comment

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

Something is missing here, instead of using : use =

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants