maticnetwork / terraform-polygon-supernets

31 stars 22 forks source link

Enabling contract deployer allowlist breaks the deployment #24

Open giovanni-pucci opened 1 year ago

giovanni-pucci commented 1 year ago

Enabling contract deployer allowlist breaks the deployment

Description

When I add the following flags to the polygon-edge genesis command, my chain doesn't work at all:

--contract-deployer-allow-list-admin {{ deployer_addr }}
--contract-deployer-allow-list-enabled {{ deployer_addr }}

Environment

Proposed Solution

I've managed to get through this issue by adding the validators addresses to the flags.

I'd propose to either add the validators automatically within the genesis command when the flag is set or document this in a way we can preempt the issue and prevent this issue from happening.

In case you opt for keeping it the way it is, please add an error message once the deployment fails specifying the cause.

Cheers!

vcastellm commented 1 year ago

What errors are you experiencing? can you paste relevant logs?