Skip to content

Do not create temporary purses during distribute#2396

Merged
casperlabs-bors-ng[bot] merged 6 commits intocasper-network:devfrom
darthsiroftardis:Distribute-purses
Nov 29, 2021
Merged

Do not create temporary purses during distribute#2396
casperlabs-bors-ng[bot] merged 6 commits intocasper-network:devfrom
darthsiroftardis:Distribute-purses

Conversation

@darthsiroftardis
Copy link
Contributor

CHANGELOG:

  • Added a new entry point mint_into_existing_purse that transfers newly minted token into an existing purse without having to create a temporary purse

Closes #2384

@darthsiroftardis darthsiroftardis self-assigned this Nov 24, 2021
@darthsiroftardis darthsiroftardis changed the title 2384: Add mint_into_existing_purse Do not create temporary purses during distribute Nov 24, 2021
Copy link
Collaborator

Choose a reason for hiding this comment

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

see nits vis a vis comments

@EdHastingsCasperAssociation EdHastingsCasperAssociation added this to the 1.4.3 milestone Nov 24, 2021
amount: U512,
existing_purse: URef,
) -> Result<(), Error> {
if self.context.get_caller() != PublicKey::System.to_account_hash()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we even allow for a non-system account to call mint endpoints? I don't think so.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should address that in a separate PR too if required - this PR matches the existing functionality I believe.

@darthsiroftardis
Copy link
Contributor Author

bors r+

@casperlabs-bors-ng
Copy link
Contributor

Build succeeded:

@casperlabs-bors-ng casperlabs-bors-ng bot merged commit d7a2caf into casper-network:dev Nov 29, 2021
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.

6 participants