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

Adding multiple unit tests - Small improvements #1628

Merged
merged 5 commits into from
Apr 11, 2024

Conversation

HenriqueNogara
Copy link
Contributor

@HenriqueNogara HenriqueNogara commented Mar 26, 2024

Adds multiple unit tests; Improve controller transfer and token issuance code;

changelog

new external API

  • Adds the following error variant to the portfolio pallet: InvalidTransferSenderIdMatchesReceiverId;

other

  • In function ensure_portfolio_transfer_validity_granular, PortfolioValidityResult::receiver_is_same_portfolio will be set to true if the transfer is between different portfolios, but belong to the Identity;

Copy link
Contributor

@Neopallium Neopallium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor things.

pallets/portfolio/src/lib.rs Show resolved Hide resolved
pallets/portfolio/src/lib.rs Show resolved Hide resolved
pallets/asset/src/lib.rs Show resolved Hide resolved
pallets/asset/src/lib.rs Outdated Show resolved Hide resolved
pallets/asset/src/lib.rs Outdated Show resolved Hide resolved
pallets/asset/src/lib.rs Outdated Show resolved Hide resolved
pallets/asset/src/lib.rs Outdated Show resolved Hide resolved
@adamdossa adamdossa merged commit 936702a into develop Apr 11, 2024
13 checks passed
@adamdossa adamdossa deleted the controller-issue-improvements branch April 11, 2024 10:31
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.

None yet

3 participants