i am using substrate pallet_contracts
for wasm contract deployment how can i set the fees for contract deployment?
-
Can you elaborate a bit more?– Daan van der PlasMay 5 at 8:39
-
1@DaanvanderPlas i want to decrease the contract deployment fees on my chain,currently if i deploy an erc721 wasm contract it costs around (6 tokens) i want to decrease this amount how can i do that?– Amit Kumar YadavMay 5 at 9:35
1 Answer
You can adjust DepositPerItem
and DepositPerByte
in the pallet-contracts
configuration.
You can take a look at how this is configured in Substrate (do not use these values as they are likely unsuitable for something that has economic value). Here is the link to the configuration file: GitHub - Substrate runtime configuration.
If you are deploying to a solo chain that has different hardware specifications than Polkadot, you should probably run the weight benchmark against hardware that matches the specifications of your network. This thread might be helpful for that: Stack Exchange - How to generate WeightInfo for pallets.