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

Return Near U128 instead of primitive u128 #813

Closed
bh2smith opened this issue Aug 23, 2024 · 1 comment · Fixed by #815
Closed

Return Near U128 instead of primitive u128 #813

bh2smith opened this issue Aug 23, 2024 · 1 comment · Fixed by #815

Comments

@bh2smith
Copy link

bh2smith commented Aug 23, 2024

The current return value here is coming back as number type in scientific notation 5e22. I believe if you used U128 wrapper from near_sdk that this value would be serialized to a lossless string instead.

pub fn experimental_signature_deposit(&self) -> u128 {

This was discovered while implementing dynamic deposit here:

BitteProtocol/near-ca#99

@volovyks
Copy link
Collaborator

Thank you @bh2smith , good point.

@volovyks volovyks linked a pull request Aug 26, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from Backlog to Done in Emerging Technologies Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants