Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hamdiallam committed Jan 17, 2025
1 parent fc361c1 commit 10ecaca
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/viem/src/actions/sendSuperchainERC20.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseAbi, erc20Abi } from 'viem'
import { erc20Abi, parseAbi } from 'viem'
import { beforeAll, describe, expect, it } from 'vitest'

import { supersimL2B } from '@/chains/supersim.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/viem/src/actions/sendSuperchainWETH.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { parseAbi, erc20Abi } from 'viem'
import { erc20Abi } from 'viem'
import { beforeAll, describe, expect, it } from 'vitest'

import { supersimL2B } from '@/chains/supersim.js'
Expand Down
10 changes: 7 additions & 3 deletions packages/viem/src/decorators/publicL2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export type PublicActionsL2<
parameters: RelayL2ToL2MessageParameters<TChain, TAccount, TChainOverride>,
) => Promise<RelayL2ToL2MessageContractReturnType>

simulateSendSuperchainERC20: <TChainOverride extends Chain | undefined = undefined>(
simulateSendSuperchainERC20: <
TChainOverride extends Chain | undefined = undefined,
>(
parameters: SendSuperchainERC20Parameters<TChain, TAccount, TChainOverride>,
) => Promise<SendSuperchainERC20ContractReturnType>

Expand Down Expand Up @@ -171,7 +173,8 @@ export function publicActionsL2() {
estimateSendL2ToL2MessageGas(client, args),
estimateRelayL2ToL2MessageGas: (args) =>
estimateRelayL2ToL2MessageGas(client, args),
estimateSendSuperchainERC20Gas: (args) => estimateSendSuperchainERC20Gas(client, args),
estimateSendSuperchainERC20Gas: (args) =>
estimateSendSuperchainERC20Gas(client, args),
estimateSendSuperchainWETHGas: (args) =>
estimateSendSuperchainWETHGas(client, args),
estimateDepositSuperchainWETHGas: (args) =>
Expand All @@ -184,7 +187,8 @@ export function publicActionsL2() {
simulateSendL2ToL2Message(client, args),
simulateRelayL2ToL2Message: (args) =>
simulateRelayL2ToL2Message(client, args),
simulateSendSuperchainERC20: (args) => simulateSendSuperchainERC20(client, args),
simulateSendSuperchainERC20: (args) =>
simulateSendSuperchainERC20(client, args),
simulateDepositSuperchainWETH: (args) =>
simulateDepositSuperchainWETH(client, args),
simulateWithdrawSuperchainWETH: (args) =>
Expand Down
3 changes: 2 additions & 1 deletion packages/wagmi/src/hooks/useSendSuperchainWETH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { useCallback } from 'react'
import { useSendSuperchainERC20 } from './useSendSuperchainERC20.js'

export const useSendSuperchainWETH = () => {
const { sendSuperchainERC20, isError, isPending, isSuccess } = useSendSuperchainERC20()
const { sendSuperchainERC20, isError, isPending, isSuccess } =
useSendSuperchainERC20()

const sendSuperchainWETH = useCallback(
(params: SendSuperchainWETHParameters) => {
Expand Down

0 comments on commit 10ecaca

Please sign in to comment.