Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kengoldfarb committed Aug 24, 2022
1 parent 8275713 commit c466856
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions src/components/Atoms/FacetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,14 @@ export const FacetList: React.FC<IProps> = ({
)

const functions =
contract?.abi.filter(a => a.type === 'function') ??
[]
contract?.abi.filter(
(a: any) => a.type === 'function'
) ?? []

const functionSelectorNameHash: Record<string, string> =
{}

functions.forEach(f => {
functions.forEach((f: any) => {
const functionName = `${f.name}(${f.inputs
.map(
(input: { name: string; type: string }) =>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Atoms/FunctionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const FunctionList: React.FC<IProps> = ({ abi }) => {
return (
<Spoiler showLabel="show" hideLabel="hide" maxHeight={0}>
<ul>
{abi.map(a =>
{abi.map((a: any) =>
a.type === 'function' ? (
<li>
<p>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Bundles/BundleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const BundleForm: React.FC<IProps> = ({

const handleFacetSelect: IFindContractProps['onClick'] = async contract => {
const existingFacet = form.values.facets.find(
f => f.contractId === contract.id
(f: any) => f.contractId === contract.id
)

if (existingFacet) {
Expand All @@ -77,8 +77,8 @@ export const BundleForm: React.FC<IProps> = ({

const usedSelectors: Record<string, string> = {}

form.values.facets.forEach(f => {
f.selectors.forEach(s => {
form.values.facets.forEach((f: any) => {
f.selectors.forEach((s: any) => {
usedSelectors[s] = f.target
})
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/Contracts/DeployContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DeployContract: React.FC<IProps> = ({
// @ts-ignore
const vals = form.values[`args${i}`].split('\n')

args.push(vals.map(item => item.trim()))
args.push(vals.map((item: any) => item.trim()))
break
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/ManageDiamond/ManageDiamondContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const ManageDiamondContainer: React.FC = () => {

const usedSelectors: Record<string, string> = {}

proxyContract?.Contract?.functionSelectors.forEach(s => {
proxyContract?.Contract?.functionSelectors.forEach((s: any) => {
usedSelectors[s] = proxyContract.address
})

Expand Down

0 comments on commit c466856

Please sign in to comment.