Skip to content

Object is possibly 'undefined'.ts(2532) #2141

Answered by PatrickAlphaC
DuyVo96 asked this question in Q&A
Discussion options

You must be logged in to vote

Could you please always post formatted code instead of a screenshot?

And try putting a ! after provider.

this.provider!.getTransactionCount

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DuyVo96
Comment options

Answer selected by DuyVo96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants