1

How can I call my pallet functions from a smart contract?

For example I have a pallet with name dex, this pallet has some function with name A , B , C. Now I want to call and use this functions in my smart contract. How can I do that?

1 Answer 1

1

Check this example A Substrate node demonstrating two-way interactions between the runtime and Ink! smart contracts.

It shows you a demo for both scenarios: Pallet-to-contract and the one you are looking for: Contract-to-pallet

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.