From dde99d6178e1f0d77bfe2b3b6c07e9651d00a739 Mon Sep 17 00:00:00 2001 From: Mikelle Date: Wed, 24 Mar 2021 20:13:26 +0300 Subject: [PATCH] fixed TestNodeInfo test --- db/historydb/views.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/historydb/views.go b/db/historydb/views.go index 0649e4d..d7ee4b3 100644 --- a/db/historydb/views.go +++ b/db/historydb/views.go @@ -374,14 +374,15 @@ type RollupVariablesAPI struct { // NewRollupVariablesAPI creates a RollupVariablesAPI from common.RollupVariables func NewRollupVariablesAPI(rollupVariables *common.RollupVariables) *RollupVariablesAPI { + buckets := make([]BucketParamsAPI, len(rollupVariables.Buckets)) rollupVars := RollupVariablesAPI{ EthBlockNum: rollupVariables.EthBlockNum, FeeAddToken: apitypes.NewBigIntStr(rollupVariables.FeeAddToken), ForgeL1L2BatchTimeout: rollupVariables.ForgeL1L2BatchTimeout, WithdrawalDelay: rollupVariables.WithdrawalDelay, SafeMode: rollupVariables.SafeMode, + Buckets: buckets, } - for i, bucket := range rollupVariables.Buckets { rollupVars.Buckets[i] = BucketParamsAPI{ CeilUSD: apitypes.NewBigIntStr(bucket.CeilUSD),