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

Address wrt. specs (partially). Additional minor breaking changes. #383

Merged
merged 6 commits into from
Feb 16, 2024

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Feb 15, 2024

  • Add extra methods on Address, wrt. specs: https://github.com/multiversx/mx-sdk-specs/blob/main/sdk-core/address.md
  • Breaking change: Address constructor cannot be called without parameters anymore. Replacement: Address.empty(). However, generally speaking, new Address(/no params/) should have never been used within client code. Just the same, Address.empty() should not be used by client code (internal use only).
  • Breaking change (fixing change): when address is required, but detected to be empty (or zero), an error is thrown (instead of just displaying a WARN). E.g. interaction.buildTransaction() will throw if withSender() wasn't called. The WARN was on ~1 year.

@andreibancioiu andreibancioiu self-assigned this Feb 15, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review February 16, 2024 08:37
@andreibancioiu andreibancioiu changed the title Add extra methods on Address, wrt. specs. Add extra methods on Address, wrt. specs. Additional minor breaking changes. Feb 16, 2024
@popenta popenta self-requested a review February 16, 2024 08:44
@andreibancioiu andreibancioiu changed the title Add extra methods on Address, wrt. specs. Additional minor breaking changes. Address wrt. specs (partially). Additional minor breaking changes. Feb 16, 2024
@andreibancioiu andreibancioiu merged commit eca0221 into feat/next Feb 16, 2024
1 check passed
@andreibancioiu andreibancioiu deleted the address-01 branch February 16, 2024 09:33
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.

3 participants