Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chris124567 committed Dec 4, 2024
1 parent c20cbb0 commit 28687d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/testutil/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 28687d1

Please sign in to comment.