Skip to content

Commit 914a416

Browse files
committed
fix(transaction-pay): allow undefined useExactInput in getTradeType
isMaxAmount and isPostQuote are both optional, so useExactInput is boolean | undefined and the build failed on the narrowed parameter type.
1 parent 81dba28 commit 914a416

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/transaction-pay-controller/src/strategy/relay/relay-quotes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function isHypercoreDeposit(request: QuoteRequest): boolean {
645645
* @returns The Relay trade type.
646646
*/
647647
function getTradeType(
648-
useExactInput: boolean,
648+
useExactInput: boolean | undefined,
649649
useExactOutput: boolean,
650650
): RelayQuoteRequest['tradeType'] {
651651
if (useExactInput) {

0 commit comments

Comments
 (0)