Skip to content

Commit

Permalink
chore: add number cast
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jul 17, 2024
1 parent 0430aa8 commit 15d81b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-dapp/src/dapp-client/DAppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ export class DAppClient extends Client {

if (
input.operationDetails.some(
(detail: any) => detail.amount && detail.amount > Number.MAX_SAFE_INTEGER * 1_000_000
(detail: any) => detail.amount && Number(detail.amount) > Number.MAX_SAFE_INTEGER * 1_000_000
)
) {
throw await this.sendInternalError('The amount requested is too large.')
Expand Down

0 comments on commit 15d81b9

Please sign in to comment.