Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Nov 18, 2024
1 parent c0b7240 commit 43a0e55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion explorer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ type ExtendedFileContract struct {
Payout types.Currency `json:"payout"`
ValidProofOutputs []ContractSiacoinOutput `json:"validProofOutputs"`
MissedProofOutputs []ContractSiacoinOutput `json:"missedProofOutputs"`
UnlockHash types.Hash256 `json:"unlockHash"`
UnlockHash types.Address `json:"unlockHash"`
RevisionNumber uint64 `json:"revisionNumber"`
}

Expand Down
4 changes: 2 additions & 2 deletions internal/rhp/v3/rhp.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,13 +761,13 @@ func prepareContractRenewal(currentRevision types.FileContractRevision, renterAd
WindowStart: uint64(endHeight),
WindowEnd: uint64(endHeight + host.WindowSize),
Payout: taxAdjustedPayout(renterPayout.Add(hostValidPayout)),
UnlockHash: types.Hash256(types.UnlockConditions{
UnlockHash: types.UnlockConditions{
PublicKeys: []types.UnlockKey{
renterKey.PublicKey().UnlockKey(),
hostKey.UnlockKey(),
},
SignaturesRequired: 2,
}.UnlockHash()),
}.UnlockHash(),
RevisionNumber: 0,
ValidProofOutputs: []types.SiacoinOutput{
{Value: renterPayout, Address: renterAddress},
Expand Down
2 changes: 1 addition & 1 deletion internal/testutil/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func PrepareContractFormation(renterPubKey types.PublicKey, hostKey types.Public
WindowStart: startHeight,
WindowEnd: endHeight,
Payout: payout,
UnlockHash: types.Hash256(uc.UnlockHash()),
UnlockHash: uc.UnlockHash(),
RevisionNumber: 0,
ValidProofOutputs: []types.SiacoinOutput{
{Value: renterPayout, Address: refundAddr},
Expand Down

0 comments on commit 43a0e55

Please sign in to comment.