2

I have a contract which uses ink_env::ecdsa_recover() for signature verification. Though all the tests are passing, I am unable to deploy it on the local node using contracts-ui.

This is the error it's throwing:

module imports a non-existent function

What am I missing?

1
  • What local node are you using ?
    – P.Ossun
    May 5, 2022 at 13:05

1 Answer 1

2

ink_env::ecdsa_recover() uses an unstable interface of the contracts pallet. Make sure to use the substrate-contracts-node which has unstable interfaces enabled by default.

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.