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?
CodeRejected means that your contract is using some stuff that is not supported by the
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.