Contracts Pallet

1
Contracts Pallet We have learned why smart contracts are useful and why we want to have them in out blockchain. In order to offer this functionality we need to have a piece of software in our runtime that executes them Substrate includes pallet-contracts which executes WebAssembly (wasm) based smart contracts WebAssembly smart contracts only refer to the bytecode used to express the contracts There are a lot of different ways you could implement a wasm based smart contract platform pallet-contracts is one opinionated way of doing this. It stays purposefully close to the EVM way of doing this (synchronous cross contract calls) while differentiating itself in some key areas. We will learn about this in the next chapter