From 22fec5714e24f902a83d54c3421bc1f48bd4afe2 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Tue, 1 Aug 2023 18:30:06 +0800 Subject: [PATCH] fix(rollup): fix error message and compile error (#416) fix(rollup): fix compile error --- params/version.go | 2 +- rollup/circuitcapacitychecker/impl.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/params/version.go b/params/version.go index 119e4be5f6..0d21d16a2f 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 4 // Major version component of the current release VersionMinor = 3 // Minor version component of the current release - VersionPatch = 1 // Patch version component of the current release + VersionPatch = 2 // Patch version component of the current release VersionMeta = "sepolia" // Version metadata to append to the version string ) diff --git a/rollup/circuitcapacitychecker/impl.go b/rollup/circuitcapacitychecker/impl.go index beb595f9fe..ebc6c63308 100644 --- a/rollup/circuitcapacitychecker/impl.go +++ b/rollup/circuitcapacitychecker/impl.go @@ -87,8 +87,8 @@ func (ccc *CircuitCapacityChecker) ApplyTransaction(traces *types.BlockTrace) (* if result.TxRowUsage == nil || result.AccRowUsage == nil { log.Error("fail to apply_tx in CircuitCapacityChecker", "id", ccc.ID, "TxHash", traces.Transactions[0].TxHash, - "len(result.TxRowUsage)", len(result.TxRowUsage), - "len(result.AccRowUsage)", len(result.AccRowUsage), + "result.TxRowUsage==nil", result.TxRowUsage == nil, + "result.AccRowUsage == nil", result.AccRowUsage == nil, "err", "TxRowUsage or AccRowUsage is empty unexpectedly") return nil, ErrUnknown }