Increase the wasm code size in Terra blockchain

Hello, everyone.
This is Guorong, a passionate blockchain developer, especially on Terra blockchain. :grinning:

Currently, I am working on one interesting Defi project, and it ran into the issue of default max wasm code size.
In detail, the current max wasm code size of Terra blockchain is 600kb.
Terra max contract code size
Since the project needs more features to be implemented, it is exceeding the current max wasm code size.

I think it is needed to update the max wasm code size, like 600kb โ†’ 1.2mb.
Then, it would allow the Terra developers to implement many more features to the single Terra smart contract, which results in more interesting projects for Terra blockchain.
Also, it would be beneficial to follow the trend of cosmwasm, which is the tool for the Terra smart contract.
Cosmwasm max contract code size

Hope to hear the opinions on this idea of governance param change.

Not opposed to this idea. Just wondering what the consequences are for validators?

1 Like

This is technically possible, no roadblocks exist that we are aware of.


If the head of Validator Relations says its not a big deal for validators, Iโ€™m good with this proposal.

1 Like

Thanks for the replies.
Can you give me more info how to contact the head of Validation Relations?
I think the current topic is so-so topic for validators.
Thanks in advance.

@Jared is the man you seek : )

1 Like

Thanks so much, @Zero.AuraStake .

we will push a proposal for this very soon.

1 Like

1 Like

I will be voting NO on this one.

has there been any performance testing done on this?
what happens to cache sizes, and TPS, and overall reliability of the network.

1 Like

Canโ€™t the smart contract be broken into smaller ones that interact with each other?

usually yes.
there are two schools of thought.

  • small contracts that only do >1< thing (easier to find bugs, more reusability)
  • large contracts that do everything (simpler to write, and donโ€™t have to do message passing as much)