From 28687d15066cfed675b7275f73aa492cdb1d8af2 Mon Sep 17 00:00:00 2001 From: Christopher Tarry Date: Tue, 3 Dec 2024 21:02:09 -0500 Subject: [PATCH] fix lint --- internal/testutil/chain.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/testutil/chain.go b/internal/testutil/chain.go index 9b8105d..e89806e 100644 --- a/internal/testutil/chain.go +++ b/internal/testutil/chain.go @@ -173,8 +173,7 @@ func SignV2TransactionWithContracts(cs consensus.State, pk, renterPK, hostPK typ txn.FileContractRevisions[i].Revision.HostSignature = hostPK.SignHash(cs.ContractSigHash(txn.FileContractRevisions[i].Revision)) } for i := range txn.FileContractResolutions { - switch r := txn.FileContractResolutions[i].Resolution.(type) { - case *types.V2FileContractRenewal: + if r, ok := txn.FileContractResolutions[i].Resolution.(*types.V2FileContractRenewal); ok { r.RenterSignature = renterPK.SignHash(cs.RenewalSigHash(*r)) r.HostSignature = hostPK.SignHash(cs.RenewalSigHash(*r)) r.NewContract.RenterSignature = renterPK.SignHash(cs.ContractSigHash(r.NewContract))