Skip to content

feat(evm): add gateway alert for 0 balance ongoing tx #1194

feat(evm): add gateway alert for 0 balance ongoing tx

feat(evm): add gateway alert for 0 balance ongoing tx #1194

Triggered via pull request December 20, 2024 17:00
Status Failure
Total duration 1m 55s
Artifacts

QA.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 9 warnings
src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should initialize with correct default values: apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts#L47
TypeError: Cannot read properties of undefined (reading 'toExact') ❯ Module.useGatewayForm src/app/[lang]/(bridge)/hooks/useGatewayForm.ts:47:45 ❯ src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts:56:7 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should validate BRIDGE_AMOUNT field when min and max amounts are defined: apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts#L47
TypeError: Cannot read properties of undefined (reading 'toExact') ❯ Module.useGatewayForm src/app/[lang]/(bridge)/hooks/useGatewayForm.ts:47:45 ❯ src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts:70:7 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should disable the form when required fields are not filled: apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts#L47
TypeError: Cannot read properties of undefined (reading 'toExact') ❯ Module.useGatewayForm src/app/[lang]/(bridge)/hooks/useGatewayForm.ts:47:45 ❯ src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts:88:7 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should update recipient field if user is a smart account: apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts#L47
TypeError: Cannot read properties of undefined (reading 'toExact') ❯ Module.useGatewayForm src/app/[lang]/(bridge)/hooks/useGatewayForm.ts:47:45 ❯ src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts:108:7 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should not show recipient field if user is not a smart account: apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts#L47
TypeError: Cannot read properties of undefined (reading 'toExact') ❯ Module.useGatewayForm src/app/[lang]/(bridge)/hooks/useGatewayForm.ts:47:45 ❯ src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts:122:7 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts > useGatewayForm > should call onSubmit with form values on submit: apps/evm/src/app/[lang]/(bridge)/hooks/useGatewayForm.ts#L47
TypeError: Cannot read properties of undefined (reading 'toExact') ❯ Module.useGatewayForm src/app/[lang]/(bridge)/hooks/useGatewayForm.ts:47:45 ❯ src/app/[lang]/(bridge)/hooks/tests/useGatewayForm.test.ts:135:7 ❯ TestComponent ../../node_modules/.pnpm/@testing-library[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/@testing-library/react-hooks/lib/helpers/createTestHarness.js:25:14 ❯ renderWithHooks ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
Tests
Process completed with exit code 1.
Unused Files, Deps, Exports
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Prettier
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ESLint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
ESLint: apps/evm/src/app/[lang]/(bridge)/components/BridgeStatus/TimeStep.tsx#L57
React Hook useMemo has a missing dependency: 'lang'. Either include it or remove the dependency array
ESLint: apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts#L6
There should be at least one empty line between import groups
ESLint: apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts#L7
`./useStrategiesContractData` import should occur before import of `@/hooks`
ESLint: apps/evm/src/app/[lang]/(bridge)/stake/hooks/useGetStakingStrategies.ts#L51
React Hook useMemo has a missing dependency: 'strategies'. Either include it or remove the dependency array
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
TypeScript
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636