From 81bcf50690a45b5e14085994b1870eaa211fc46e Mon Sep 17 00:00:00 2001 From: Sergio Mena Date: Wed, 30 Nov 2022 19:06:38 +0100 Subject: [PATCH] Fix all UTs --- state/execution_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/state/execution_test.go b/state/execution_test.go index b9c5dd340..22070a009 100644 --- a/state/execution_test.go +++ b/state/execution_test.go @@ -94,7 +94,7 @@ func TestFinalizeBlockDecidedLastCommit(t *testing.T) { stateStore := sm.NewStore(stateDB, sm.StoreOptions{ DiscardABCIResponses: false, }) - absentSig := types.NewCommitSigAbsent() + absentSig := types.NewExtendedCommitSigAbsent() testCases := []struct { name string @@ -134,12 +134,12 @@ func TestFinalizeBlockDecidedLastCommit(t *testing.T) { for idx, isAbsent := range tc.absentCommitSigs { if isAbsent { - lastCommit.Signatures[idx] = absentSig + lastCommit.ExtendedSignatures[idx] = absentSig } } // block for height 2 - block := makeBlock(state, 2, lastCommit) + block := makeBlock(state, 2, lastCommit.StripExtensions()) bps, err := block.MakePartSet(testPartSize) require.NoError(t, err) blockID := types.BlockID{Hash: block.Hash(), PartSetHeader: bps.Header()}