2

i am using substrate pallet_contracts for wasm contract deployment how can i set the fees for contract deployment?

2
  • Can you elaborate a bit more? May 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? May 5 at 9:35

1 Answer 1

1

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.

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.

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