I was following this example of ink! upgradable smart contract. After I uploaded the upgradable_contract.contract (Step 4 in the link), I got the following error: How can I fix it?
1 Answer
CodeRejected
means that your contract is using some stuff that is not supported by the contract-pallet
.
In your case, seal_delegate_call
is an unstable function at the moment, and it is disabled by default. To enable it you need to build the node with pallet-contracts/unstable-interface
feature. Or you can use substrate-contracts-node
, it is enabled there.
-
-
Are you sure that it was the latest
substrate-contracts-node
? Because error means that you are using the functions in the code that is not available Mar 13, 2022 at 7:21