Deploying and managing predeployed contracts on Cosmos EVM
local_node.sh
script automatically configures default preinstalls:
MsgRegisterPreinstalls
governance proposal:
authority
field must be set to the governance module account address, which is typically derived from the gov module name. This is usually something like cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn
for the standard gov module.evmtypes.DefaultPreinstalls
unless you have specific requirementsIssue | Cause | Solution |
---|---|---|
”preinstall already has an account in account keeper” | Address collision | Choose different address |
”preinstall has empty code hash” | Invalid or empty bytecode | Verify bytecode hex string is valid |
”preinstall address is not a valid hex address” | Malformed address | Ensure 0x prefix and 40 hex chars |
”invalid authority” | Wrong governance address | Use correct gov module account address |
Contract not found after deployment | Wrong network | Verify chain ID and RPC endpoint |