When running an instantiate dry-run with salt, the contract address returned in the dry run doesn't match the actual contract address so the DuplicateContract error is not predicted.
When no salt is used, the address is correct.
This bug is only happening with polkadot.js, cargo-contract works fine
When running an instantiate dry-run with salt, the contract address returned in the dry run doesn't match the actual contract address so the
DuplicateContract
error is not predicted. When no salt is used, the address is correct. This bug is only happening with polkadot.js, cargo-contract works fine