Skip to content

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.

3 participants