This repository has been archived by the owner on May 2, 2022. It is now read-only.
Test uploaded contract for compatibility with contract
pallet
#74
Labels
enhancement
New feature or request
Motivation
The UI should output a warning when trying to upload a contract that was written in an incompatible ink! ⇿
contract
pallet version.This is an issue which will become only more prevalent in the future. It is already a recurring source of confusion for users and we regularly get questions about which versions are compatible.
My hunch is that the output should be a warning, not an error, since a user could write a contract in a newer version of ink! which would still be compatible to old versions of the
contract
pallet. There are arguments to be made for an error message though, not entirely sure what the best option is.Implementation
.contract
file already contains the ink! version undersource.language
.contract
pallet does not currently not expose its version. (cc @athei)I guess in an ideal world we would take semver into account when checking for compatibility.
The text was updated successfully, but these errors were encountered: