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

fix: rm-serde-arbitrary-precision-feat #287

Merged
merged 6 commits into from Sep 9, 2023
Merged

fix: rm-serde-arbitrary-precision-feat #287

merged 6 commits into from Sep 9, 2023

Conversation

ghost
Copy link

@ghost ghost commented Aug 8, 2023

Closes #279

The arbitrary_precision feature is removed from serde_json in the Cargo.toml

@ghost ghost marked this pull request as ready for review August 8, 2023 14:43
@ghost
Copy link
Author

ghost commented Aug 11, 2023

@frol This is ready to be reviewed.

@frol
Copy link
Collaborator

frol commented Aug 21, 2023

@shariffdev Why was it used in the first place? Does it break anything when this feature is dropped? cc @ChaoticTempest

@ghost
Copy link
Author

ghost commented Aug 22, 2023

@shariffdev Why was it used in the first place? Does it break anything when this feature is dropped? cc @ChaoticTempest

I did not find any example that broke without the feature. Please advise @ChaoticTempest

Copy link
Collaborator

@frol frol left a comment

Choose a reason for hiding this comment

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

arbitrary_precision was introduced in #35. Please, run ref-finance example with this PR applied and confirm that it still works just fine, and let's merge it.

@ghost
Copy link
Author

ghost commented Sep 9, 2023

I have pushed a small fix, everything is looking good now!

@ghost ghost requested a review from frol September 9, 2023 11:31
Comment on lines 72 to 75
.args_json(json!({
"owner_id": owner.id(),
"total_supply": parse_near!("1,000,000,000 N"),
"total_supply": parse_near!("1,000,000,000 N").to_string(),
}))
Copy link
Collaborator

@frol frol Sep 9, 2023

Choose a reason for hiding this comment

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

wrap.near contract new method does not expect any arguments O_o

https://github.com/near/core-contracts/blob/3f3170fce91ff4d8c6ee9d15683f2d4dfe1275cf/w-near/src/lib.rs#L36

Let's remove args_json completely, and test again.

Copy link
Author

Choose a reason for hiding this comment

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

OK, let me try!

Copy link
Author

Choose a reason for hiding this comment

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

It works okay!

@frol frol merged commit be6afa4 into near:main Sep 9, 2023
@ghost ghost deleted the fix/rm-serde-arbitrary-precision-feat branch October 3, 2023 16:07
@frol frol mentioned this pull request Oct 4, 2023
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.

workspaces-rs should not require serde_json arbitrary_precision feature
1 participant