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

Enforcement of Non-Mutating Messages in Polkadot #16

Open
tareknaser opened this issue Nov 11, 2023 · 0 comments
Open

Enforcement of Non-Mutating Messages in Polkadot #16

tareknaser opened this issue Nov 11, 2023 · 0 comments

Comments

@tareknaser
Copy link
Contributor

There's a problem with non-mutating messages in Polkadot. The problem is that on the contracts pallet (runtime) level this isn't enforced, so users have to trust the client to not submit an extrinsic for messages considered immutable.
There are "read only" messages in contracts. They'll have the mutates flag set to false in the metadata.

Solution

For those messages, the -x/--execute should lead to an error instead.

See related comment

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

No branches or pull requests

1 participant