Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Dec 12, 2024
1 parent 74824a4 commit c8e77a4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
type OneOf,
type Transport,
type WalletClient,
concatHex,
encodeAbiParameters,
encodeFunctionData,
encodePacked,
Expand All @@ -28,18 +27,17 @@ import {
} from "viem/account-abstraction"
import { getChainId } from "viem/actions"
import { getAction } from "viem/utils"
import { getAccountNonce } from "../../actions/public/getAccountNonce"
import { getSenderAddress } from "../../actions/public/getSenderAddress"
import { toOwner } from "../../utils"
import { encode7579Calls } from "../../utils/encode7579Calls"
import { getAccountNonce } from "../../actions/public/getAccountNonce.js"
import { getSenderAddress } from "../../actions/public/getSenderAddress.js"
import { encode7579Calls } from "../../utils/encode7579Calls.js"
import { toOwner } from "../../utils/index.js"
import {
DEFAULT_CONTRACT_ADDRESS,
DUMMY_ECDSA_SIGNATURE,
type NetworkAddresses,
VALIDATOR_TYPE
} from "./constants"
import { getInitMSAData } from "./utils/getInitMSAData"
import { getNonceKeyWithEncoding } from "./utils/getNonceKey"
type NetworkAddresses
} from "./constants.js"
import { getInitMSAData } from "./utils/getInitMSAData.js"
import { getNonceKeyWithEncoding } from "./utils/getNonceKey.js"

/**
* The account creation ABI for a modular etherspot smart account
Expand Down Expand Up @@ -98,10 +96,6 @@ const getDefaultAddresses = ({
}
}

const getEcdsaValidatorIdentifier = (validatorAddress: Address) => {
return concatHex([VALIDATOR_TYPE.VALIDATOR, validatorAddress])
}

/**
* Get the initialization data for a etherspot smart account
* @param entryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { encodeFunctionData, zeroAddress } from "viem"
import {
EtherspotBootstrapAbi,
EtherspotOnInstallAbi
} from "../abi/EtherspotBootstrapAbi"
} from "../abi/EtherspotBootstrapAbi.js"

export const getInitMSAData = (ecdsaValidatorAddress: `0x${string}`) => {
const validators = makeBootstrapConfig(ecdsaValidatorAddress, "0x")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Address, concatHex, pad, toHex } from "viem"
import { VALIDATOR_MODE, VALIDATOR_TYPE } from "../constants"
import { VALIDATOR_MODE, VALIDATOR_TYPE } from "../constants.js"

export const getNonceKeyWithEncoding = (
validatorAddress: Address,
Expand Down
2 changes: 1 addition & 1 deletion packages/permissionless/actions/etherspot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
type GetGasPriceResponseReturnType,
getUserOperationGasPrice
} from "./etherspot/getUserOperationGasPrice"
} from "./etherspot/getUserOperationGasPrice.js"

export { type GetGasPriceResponseReturnType, getUserOperationGasPrice }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Account, Chain, Client, Transport } from "viem"
import type { EtherspotBundlerRpcSchema } from "../../types/etherspot"
import type { EtherspotBundlerRpcSchema } from "../../types/etherspot.js"

export type GetGasPriceResponseReturnType = {
maxFeePerGas: bigint
Expand Down

0 comments on commit c8e77a4

Please sign in to comment.