Skip to content

Metamask snap

Metamask snap #393

Triggered via pull request May 20, 2024 14:54
Status Failure
Total duration 1m 26s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
unit-lint: src/App.tsx#L70
Missing return type on function
unit-lint: src/common/Nav.tsx#L52
Assignment to property of function parameter 'ext'
unit-lint: src/common/Nav.tsx#L161
Redundant use of `await` on a return value
unit-lint: src/context/MetamaskContext.tsx#L20
Unexpected any. Specify a different type
unit-lint: src/context/MetamaskContext.tsx#L73
Missing return type on function
unit-lint: src/context/MetamaskContext.tsx#L78
React Hook "useReducer" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?
unit-lint: src/context/MetamaskContext.tsx#L82
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?
unit-lint: src/context/MetamaskContext.tsx#L83
Missing return type on function
unit-lint: src/context/MetamaskContext.tsx#L91
Unexpected any. Specify a different type
unit-lint: src/context/MetamaskContext.tsx#L94
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?
unit-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
unit-lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
unit-lint: src/App.tsx#L68
React Hook useEffect has missing dependencies: 'history' and 'selExtensionName'. Either include them or remove the dependency array
unit-lint: src/common/Nav.tsx#L48
React Hook useEffect has a missing dependency: 'extension?.name'. Either include it or remove the dependency array
unit-lint: src/common/Nav.tsx#L55
React Hook useEffect has a missing dependency: 'availableExtensions'. Either include it or remove the dependency array. You can also do a functional update 'setAvailableExtensions(a => ...)' if you only need 'availableExtensions' in the 'setAvailableExtensions' call
unit-lint: src/common/Nav.tsx#L148
Forbidden non-null assertion
unit-lint: src/context/MetamaskContext.tsx#L73
Missing return type on function
unit-lint: src/context/MetamaskContext.tsx#L91
React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked
unit-lint: src/index.tsx#L14
Forbidden non-null assertion
unit-lint: src/pages/bonds/BondsComponent.tsx#L90
Forbidden non-null assertion
unit-lint: src/pages/bonds/BondsComponent.tsx#L350
React Hook useEffect has a missing dependency: 'updateButtonText'. Either include it or remove the dependency array
unit-lint: src/pages/bonds/BondsComponent.tsx#L372
React Hook useEffect has a missing dependency: 'updateButtonText'. Either include it or remove the dependency array