-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
@frol This is ready to be reviewed. |
@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 |
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.
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.
I have pushed a small fix, everything is looking good now! |
examples/src/ref_finance.rs
Outdated
.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(), | ||
})) |
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.
wrap.near
contract new
method does not expect any arguments O_o
Let's remove args_json
completely, and test again.
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.
OK, let me try!
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.
It works okay!
Closes #279
The
arbitrary_precision
feature is removed from serde_json in the Cargo.toml