cronos-labs / cronos-zkevm

Apache License 2.0
8 stars 3 forks source link

fix: zkstack failed to run server #98

Open JayT106 opened 2 weeks ago

JayT106 commented 2 weeks ago

Fixes zkstack reference config settings missing configs for the cronos zkevm features.

Note: When we run zkstack chain init, the script will copy the default config files from etc/env/file_based as a new chain config. Therefore, it will miss some configs relate to the cronos zkevm chain features. However, the zkstack seems like cannot read yaml file properly, so we need to set the value relate to our features no matter it's optional field (in proto file) or not.

thomas-nguy commented 1 week ago

I am facing this error when running

zkstack ecosystem init

│      Caused by:
│      Base system contracts mismatched: From Config BaseSystemContractsHashes { bootloader:
│      0x010008e15394cd83a8d463d61e00b4361afbc27c932b07a9d2100861b7d05e78, default_aa:
│      0x01000523eadd3061f8e701acda503defb7ac3734ae3371e4daf7494651d8b523, evm_emulator: None }, Calculated :
│      BaseSystemContractsHashes { bootloader: 0x010008e15394cd83a8d463d61e00b4361afbc27c932b07a9d2100861b7d05e78, default_aa:
│      0x01000523117890d928059529e439da8730964963fc4cfe66c0bab4613c156c99, evm_emulator: None })]