diff --git a/driver/chain_syncer/chain_syncer_test.go b/driver/chain_syncer/chain_syncer_test.go index 8fe500d85..b8a8b7a5c 100644 --- a/driver/chain_syncer/chain_syncer_test.go +++ b/driver/chain_syncer/chain_syncer_test.go @@ -1,6 +1,7 @@ package chainSyncer import ( + "bytes" "context" "os" @@ -64,6 +65,7 @@ func (s *ChainSyncerTestSuite) SetupTest() { PseZkevmTierFee: common.Big256, MaxTierFeePriceBumpIterations: 3, TierFeePriceBump: common.Big2, + ExtraData: "test", }))) s.p = prop @@ -97,7 +99,7 @@ func (s *ChainSyncerTestSuite) TestAheadOfProtocolVerifiedHead2() { l2Head, err := s.RpcClient.L2.HeaderByNumber(context.Background(), nil) s.Nil(err) - + s.Equal("test", string(bytes.TrimRight(l2Head.Extra, "\x00"))) log.Info("L1HeaderByNumber head", "number", head.Number) // (equiv to s.state.GetL2Head().Number) log.Info("L2HeaderByNumber head", "number", l2Head.Number) diff --git a/proposer/proposer.go b/proposer/proposer.go index 45b71d25e..90a4c2544 100644 --- a/proposer/proposer.go +++ b/proposer/proposer.go @@ -1,6 +1,7 @@ package proposer import ( + "bytes" "context" "crypto/ecdsa" "errors" @@ -490,7 +491,7 @@ func (p *Proposer) initTierFees() error { log.Info( "Protocol tier", "id", tier.ID, - "name", string(tier.VerifierName[:]), + "name", string(bytes.TrimRight(tier.VerifierName[:], "\x00")), "validityBond", tier.ValidityBond, "contestBond", tier.ContestBond, "provingWindow", tier.ProvingWindow, diff --git a/proposer/proposer_test.go b/proposer/proposer_test.go index 4099f111e..f4ee146db 100644 --- a/proposer/proposer_test.go +++ b/proposer/proposer_test.go @@ -51,6 +51,7 @@ func (s *ProposerTestSuite) SetupTest() { PseZkevmTierFee: common.Big256, TierFeePriceBump: common.Big2, MaxTierFeePriceBumpIterations: 3, + ExtraData: "test", }))) s.p = p