From bc9d7fdc90e9d4b50047a737a1651c1a3afd9f53 Mon Sep 17 00:00:00 2001 From: Mikelle Date: Thu, 25 Mar 2021 19:31:26 +0300 Subject: [PATCH] updated RollupVariables init with empty buckets --- eth/rollup.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/eth/rollup.go b/eth/rollup.go index 5e2825b..6cdf784 100644 --- a/eth/rollup.go +++ b/eth/rollup.go @@ -60,23 +60,12 @@ type RollupEventInitialize struct { // RollupVariables returns the RollupVariables from the initialize event func (ei *RollupEventInitialize) RollupVariables() *common.RollupVariables { - buckets := make([]common.BucketParams, 1) - for i := range buckets { - buckets[i] = common.BucketParams{ - CeilUSD: big.NewInt(0), - BlockStamp: big.NewInt(0), - Withdrawals: big.NewInt(0), - RateBlocks: big.NewInt(0), - RateWithdrawals: big.NewInt(0), - MaxWithdrawals: big.NewInt(0), - } - } return &common.RollupVariables{ EthBlockNum: 0, FeeAddToken: ei.FeeAddToken, ForgeL1L2BatchTimeout: int64(ei.ForgeL1L2BatchTimeout), WithdrawalDelay: ei.WithdrawalDelay, - Buckets: buckets, + Buckets: []common.BucketParams{}, SafeMode: false, } }