1

For example,

  • pallet

They use pallet-dapps-staking to call ink! smart contract

https://github.com/AstarNetwork/Astar/tree/master/pallets/dapps-staking

  • Runtime

https://github.com/AstarNetwork/Astar/blob/master/runtime/shibuya/src/lib.rs#L688

3

1 Answer 1

2

First, in any case you need a pallet to call a smart contract (SC). Pallet-contracts and pallet-evm provide the functionality to call a WASM SC or Solidity SC respectively.

There can be many reasons to have other pallets in your runtime interact with SCs or the other way around. This post on the Polkadot Forum can maybe help you get a grasp of it: https://forum.polkadot.network/t/urban-planning-in-the-paraverse-with-ink/2617

Your Answer

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

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