-
Notifications
You must be signed in to change notification settings - Fork 632
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
feat: add zero balance accounts #8378
Conversation
c24a6c1
to
7b6e31b
Compare
1, | ||
signer0.account_id.clone(), | ||
new_account_id.clone(), | ||
0, |
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.
consider enabling this whole test right now - and having the condition here -- if nightly -> pass 0 as balance, if not pass something else.
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.
I don't think this is necessary as 1) it would make the test more complex and harder to read and 2) we already test the current behavior in other runtime tests such as test_create_account_failure_no_funds
and test_validate_transaction_invalid_low_balance
(which were modified) to make sure that the zero balance account does not interfere with the stable version
d2825f6
to
485143d
Compare
Implements near/NEPs#448. Note: this pull request does not update account creation costs. If the NEP is approved, the costs will be updated separately.
Implements near/NEPs#448. Note: this pull request does not update account creation costs. If the NEP is approved, the costs will be updated separately.
# Feature to stabilize Zero Balance Account that enables a more smooth onboarding experience where users don't have to first acquire NEAR tokens to pay for the storage of their accounts. # Context - NEP: near/NEPs#448 - Implementation: #8378 # Testing and QA - unit tests in runtime/runtime/src/verifier.rs - integration tests in integration-tests/src/tests/client/features/zero_balance_account.rs # Checklist - [x] [Link to nightly nayduck run](https://nayduck.near.org/#/run/2869) - [x] Update CHANGELOG.md to include this protocol feature in the `Unreleased` section.
NEP for #415. Implementation can be found in near/nearcore#8378
Implements near/NEPs#448. Note: this pull request does not update account creation costs. If the NEP is approved, the costs will be updated separately.