From 4d8b2080ce0b265180ef7007573cdd7d18200bc5 Mon Sep 17 00:00:00 2001 From: Alok Date: Wed, 7 Feb 2024 03:43:36 +0530 Subject: [PATCH] fix: tests --- pkg/updater/updater_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/updater/updater_test.go b/pkg/updater/updater_test.go index ba60290..ed626ba 100644 --- a/pkg/updater/updater_test.go +++ b/pkg/updater/updater_test.go @@ -79,12 +79,12 @@ func TestUpdater(t *testing.T) { if i%2 == 0 { commitments[string(idxBytes[:])] = preconf.PreConfCommitmentStorePreConfCommitment{ Commiter: builderAddr, - TxnHash: txn.Hash().Hex(), + TxnHash: txn.Hash().Hex()[2:], } } else { commitments[string(idxBytes[:])] = preconf.PreConfCommitmentStorePreConfCommitment{ Commiter: otherBuilderAddr, - TxnHash: txn.Hash().Hex(), + TxnHash: txn.Hash().Hex()[2:], } } } @@ -93,9 +93,9 @@ func TestUpdater(t *testing.T) { for i := 0; i < 10; i++ { idxBytes := getIdxBytes(int64(i + 10)) - bundle := txns[i].Hash().Hex() + bundle := txns[i].Hash().Hex()[2:] for j := i + 1; j < 10; j++ { - bundle += "," + txns[j].Hash().Hex() + bundle += "," + txns[j].Hash().Hex()[2:] } commitments[string(idxBytes[:])] = preconf.PreConfCommitmentStorePreConfCommitment{