-
Notifications
You must be signed in to change notification settings - Fork 27
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 Signer.ts #52
base: master
Are you sure you want to change the base?
Update Signer.ts #52
Conversation
NFT balance check function added
sponsorship: null, | ||
isSmart: false, | ||
})), | ||
fetchAssetsAddressLimit( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Limit - required parameter
).then((data) => | ||
data.balances.map((item) => ({ | ||
assetId: item.assetId, | ||
assetName: item.issueTransaction.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IssueTransaction field can be null
item.balance * | ||
Math.pow(10, item.issueTransaction.decimals), | ||
isSmart: !!item.issueTransaction.script, | ||
sponsorship: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be error with big number. We use @waves/bignumber for that
Thank you for your interest. Does your project need NFTs, how do you assess the need for this functionality? |
NFT balance check function added