diff --git a/params/config.go b/params/config.go index d955dd161b0a..a563041d2301 100644 --- a/params/config.go +++ b/params/config.go @@ -739,8 +739,13 @@ func (s ScrollConfig) String() string { maxTxPayloadBytesPerBlock = fmt.Sprintf("%v", *s.MaxTxPayloadBytesPerBlock) } - return fmt.Sprintf("{useZktrie: %v, maxTxPerBlock: %v, MaxTxPayloadBytesPerBlock: %v, feeVaultAddress: %v, l1Config: %v}", - s.UseZktrie, maxTxPerBlock, maxTxPayloadBytesPerBlock, s.FeeVaultAddress, s.L1Config.String()) + genesisStateRoot := "" + if s.GenesisStateRoot != nil { + genesisStateRoot = fmt.Sprintf("%v", *s.GenesisStateRoot) + } + + return fmt.Sprintf("{useZktrie: %v, maxTxPerBlock: %v, MaxTxPayloadBytesPerBlock: %v, feeVaultAddress: %v, l1Config: %v, genesisStateRoot: %v}", + s.UseZktrie, maxTxPerBlock, maxTxPayloadBytesPerBlock, s.FeeVaultAddress, s.L1Config.String(), genesisStateRoot) } // IsValidTxCount returns whether the given block's transaction count is below the limit.