-
Notifications
You must be signed in to change notification settings - Fork 120
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
Unnecessary requirements when uploading a contract #892
Comments
You are absolutely right, we should provide the ability to work with just |
Hey @ascjones , thanks for quick reply 👋 Not decoding events would be quite a downside but I'm wondering whether it's really necessary here -- when uploading. Aren't the only events emitted then coming from other pallets, like |
Yes you are right, contract metadata is not required at all for |
I've been wanting to do this for a while, and unify across the extrinsics, so have made a start on it in #893. |
Similarly, |
Agreed, I plan to do that as part of #893. |
Currently,
cargo contract upload
requiresCargo.toml
and, by extensions, all of the contract's dependencies. This means that in practice I can't simply give someone my*.wasm
or*.contract
files for upload.If I understand the code correctly, it uses that information to construct a
transcoder
which is then passed intoupload_code
for decoding events upon uploading.Is it really required? Are there any contract-specific events that can be returned during contract upload? Or is the current state an unfortunate result of reusing code (
DisplayEvents
) that seemed similar enough?For example, both the official wallet and ContractsUI work fine with just the
*.wasm
or*.contract
files.The text was updated successfully, but these errors were encountered: