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

contracts: Run start function #1367

Merged
merged 9 commits into from
Sep 11, 2023
Merged

contracts: Run start function #1367

merged 9 commits into from
Sep 11, 2023

Conversation

athei
Copy link
Member

@athei athei commented Sep 2, 2023

Fixes #116

Start function wasn't allowed in a contract. Now it is allowed and is being run.

It was disallowed because it is not used by Rust and supporting it made the code more complex. However, not running the start function violates the wasm standard. This makes life harder for some languages (see linked ticket).

@athei athei added the T2-pallets This PR/Issue is related to a particular pallet. label Sep 2, 2023
@athei athei requested review from agryaznov, pgherveou and xermicus and removed request for agryaznov September 2, 2023 22:02
@pgherveou
Copy link
Contributor

Fixes #116

Start function wasn't allowed in a contract. Now it is allowed and is being run.

could we just tell quickly why is was disallowed and why do we allow it now in the PR description?

@athei athei changed the title contracts: Run start function WIP: contracts: Run start function Sep 4, 2023
@athei
Copy link
Member Author

athei commented Sep 5, 2023

Fixes #116
Start function wasn't allowed in a contract. Now it is allowed and is being run.

could we just tell quickly why is was disallowed and why do we allow it now in the PR description?

Done

@athei athei changed the title WIP: contracts: Run start function contracts: Run start function Sep 11, 2023
@athei athei merged commit c879d1d into master Sep 11, 2023
@athei athei deleted the at/start_func branch September 11, 2023 20:45
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
Fixes paritytech#116 

Start function wasn't allowed in a contract. Now it is allowed and is
being run.

It was disallowed because it is not used by Rust and supporting it made
the code more complex. However, not running the start function violates
the wasm standard. This makes life harder for some languages (see linked
ticket).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contracts: change ensure_no_start to start
3 participants