Skip to content

Instantly share code, notes, and snippets.

@Shaptic
Last active April 19, 2021 18:11
Show Gist options
  • Save Shaptic/5eb8e78ad7d5bfff62cc63571287f50f to your computer and use it in GitHub Desktop.
Save Shaptic/5eb8e78ad7d5bfff62cc63571287f50f to your computer and use it in GitHub Desktop.
Ensure that it's possible to create accounts with zero starting balance.

With the introduction of Protocol 14 and specifically CAP-33, accounts can now be created without a starting balance (given a sponsor).

The CAP notes:

Operation Validity Changes
Any downstream system relying on the fact that CreateAccountOp is invalid if startingBalance = 0 will be affected.

This subtlety is easy to overlook, so please ensure that the SDK allows this updated constraint.

If this SDK validates the starting balance to prevent starting balances of zero, please update the SDK to allow it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment