Skip to content

Commit 17facd1

Browse files
chore: removed widget amount cast to string
1 parent 8771af3 commit 17facd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/controllers/OnRampController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export const OnRampController = {
497497
destinationCurrencyCode: quote.destinationCurrencyCode,
498498
paymentMethodType: quote.paymentMethodType,
499499
serviceProvider: quote.serviceProvider,
500-
sourceAmount: quote.sourceAmount.toString(),
500+
sourceAmount: quote.sourceAmount,
501501
sourceCurrencyCode: quote.sourceCurrencyCode,
502502
walletAddress: AccountController.state.address!,
503503
redirectUrl: metadata?.redirect?.universal ?? metadata?.redirect?.native

packages/core/src/utils/TypeUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export interface BlockchainApiOnRampWidgetRequest {
335335
destinationCurrencyCode: string;
336336
paymentMethodType: string;
337337
serviceProvider: string;
338-
sourceAmount: string;
338+
sourceAmount: number;
339339
sourceCurrencyCode: string;
340340
walletAddress: string;
341341
redirectUrl?: string;

0 commit comments

Comments
 (0)