-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ const useGatewayForm = ({ query, defaultAsset, onSubmit }: UseGatewayFormProps) | |
const params: BridgeFormValidationParams = { | ||
[BRIDGE_AMOUNT]: { | ||
minAmount: new Big(query.minAmount.toExact()), | ||
maxAmount: new Big(query.balance.toExact()) | ||
maxAmount: new Big(query.balance.data.toExact()) | ||
Check failure on line 47 in apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts GitHub Actions / Testssrc/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should initialize with correct default values
Check failure on line 47 in apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts GitHub Actions / Testssrc/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should validate BRIDGE_AMOUNT field when min and max amounts are defined
Check failure on line 47 in apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts GitHub Actions / Testssrc/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should disable the form when required fields are not filled
Check failure on line 47 in apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts GitHub Actions / Testssrc/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should update recipient field if user is a smart account
Check failure on line 47 in apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts GitHub Actions / Testssrc/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should not show recipient field if user is not a smart account
Check failure on line 47 in apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts GitHub Actions / Testssrc/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should call onSubmit with form values on submit
|
||
}, | ||
[BRIDGE_RECIPIENT]: !!isSmartAccount, | ||
[BRIDGE_BTC_WALLET]: btcAddress, | ||
|