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?
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityCheck 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