Closed sccheruku closed 2 years ago
Your Render PR Server URL is https://near-certification-tools-pr-55.onrender.com.
Follow its progress at https://dashboard.render.com/web/srv-c9nue1kgqg4f6e5t41q0.
@encody Let me know what you think. Thanks.
Hi @sccheruku, thanks for the PR. Unfortunately, using new_unchecked
causes tests to fail, since it still performs the validity checks during debug mode. See discussion here.
@encody Can you please reply here with the link to whatever issue you said you were going to create (I think in the Rust SDK)? Thanks.
@encody Can you please reply here with the link to whatever issue you said you were going to create (I think in the Rust SDK)? Thanks.
Got it! thanks for your comment @encody
For what it's worth, running tests with cargo tests --release
prevents the assert from triggering. But I'm not sure if that's really a happy path.
Using the suggestion found on this doc, https://www.near-sdk.io/promises/create-account & https://github.com/near/near-sdk-rs/blob/master/near-sdk/src/types/account_id.rs#L53
I found that we can still create an account with an empty string using the
new_unchecked
method.