1

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?

enter image description here

1 Answer 1

4

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.

2
  • I used the substrate-contracts-node but the same thing happened
    – Minh Mốc
    Mar 11, 2022 at 11:55
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.