Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@typescript-eslint/no-explicit-any": "off",
"no-redeclare": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"prefer-const": ["error", {"destructuring": "all"}],
"semi": ["error", "never"],
"no-extra-semi": "off",
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/hooks/useRawCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { MultiChainStatesContext, RawCallResult } from '../providers'
import { RawCall } from '../providers'
import { Falsy } from '../model/types'
import { MultiChainState } from '../providers/chainState/multiChainStates/context'
import { useEthers } from './useEthers'

/**
* A low-level function that makes multiple calls to specific methods of specific contracts and returns values or error if present.
Expand All @@ -16,7 +15,6 @@ import { useEthers } from './useEthers'
*/
export function useRawCalls(calls: (RawCall | Falsy)[]): RawCallResult[] {
const { dispatchCalls, chains } = useContext(MultiChainStatesContext)
const { chainId } = useEthers()

useEffect(() => {
const filteredCalls = calls.filter(Boolean) as RawCall[]
Expand Down