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

Don't enforce spending limit when delegating with a purse #5011

Conversation

igor-casper
Copy link
Contributor

Removes the behavior whereby the purse used to delegate would be treated as a main purse. This fixes the issue where even though the delegation didn't actually involve the caller’s main purse, the system would still enforce the maximum spending limit for the caller. See: #4999 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@EdHastingsCasperAssociation the simple change to the topmost permission check in mint_transfer_direct we discussed on the stand-up wasn't sufficient, as that would result in tons of EE tests failing. The following works, but I'm not sure if it's the correct approach here.

@igor-casper igor-casper marked this pull request as ready for review December 5, 2024 18:01
@EdHastingsCasperAssociation
Copy link
Collaborator

bors r+

Copy link
Contributor

Build succeeded:

@casperlabs-bors-ng casperlabs-bors-ng bot merged commit 68be3ff into casper-network:feat-2.0 Dec 5, 2024
3 checks passed
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.

2 participants