Skip to content

fix(protocol): reject asset callbacks on private accounts - #3812

Open
onurinanc wants to merge 3 commits into
nextfrom
fix-reject-callbacks-private-accounts
Open

fix(protocol): reject asset callbacks on private accounts#3812
onurinanc wants to merge 3 commits into
nextfrom
fix-reject-callbacks-private-accounts

Conversation

@onurinanc

Copy link
Copy Markdown
Collaborator

Summary

  • Reject an enabled AssetCallbackFlag on an AccountType::Private account in AccountBuilder.
  • Add AccountError::AssetCallbacksOnPrivateAccount.
  • Document that the kernel loads the issuing account's state before the callback slot lookup, so an enabled flag costs a foreign load even with no registered callback root.
  • Cover the rejection in the AccountBuilder and user faucet factory tests.

Closes #3717.

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.

Private Faucets with Callbacks Enabled Can Render Their Assets Unusable

1 participant