Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hooks/use-bounty-cancel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export const useBountyCancel = ({
return;
}

// ownerAddress is optional on the backend (boundless-nestjs#392); until
// codegen picks that up the generated type marks it required, so cast.
const body = {
// ownerAddress is optional; the backend resolves and signs with the
// on-chain event manager. Send it only as a hint when we have it.
const body: CancelBountyEscrowRequest = {
fundingMode,
...(ownerAddress ? { ownerAddress } : {}),
} as CancelBountyEscrowRequest;
};

finalizedRef.current = false;
toast.info('Submitting cancellation…');
Expand Down
9 changes: 4 additions & 5 deletions hooks/use-bounty-payout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,13 @@ export const useBountyPayout = ({
return;
}

// ownerAddress is optional on the backend (it resolves the manager); until
// codegen picks that up (boundless-nestjs#392) the generated type still
// marks it required, so cast.
const body = {
// ownerAddress is optional; the backend resolves and signs with the
// on-chain event manager. Send it only as a hint when we have it.
const body: SelectBountyWinnersRequest = {
selections,
fundingMode,
...(ownerAddress ? { ownerAddress } : {}),
} as SelectBountyWinnersRequest;
};

finalizedRef.current = false;
toast.info('Submitting winner selection…');
Expand Down
Loading
Loading