DuplicateContract

Error v334 → current 29.20

A contract already exists at the target address.

Encountered by: developers

Why This Error Exists

Addresses are deterministic. Use different salt to get a different address.

From Chain Metadata

A contract with the same AccountId already exists.

What This Means

A contract already exists at the target address.

Common Causes

  • Same deployer, code, data, salt combination used twice
  • Trying to redeploy without unique salt

How to Fix

  • Use a different salt value
  • Check if contract already exists at target address

Storage to Check

Runtime Info

Pallet Index
29
Error Index
20
Error Code
29.20
Runtime Version
v393