Skip to content

Commit

Permalink
dont deploy with wiresaw for now
Browse files Browse the repository at this point in the history
need better gas estimation handling for this to work
  • Loading branch information
holic committed Nov 11, 2024
1 parent f3113a2 commit a12e037
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/cli/src/deploy/getDeployClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { transactionQueue } from "@latticexyz/common/actions";
import { rhodolite } from "@latticexyz/common/chains";
import { claimGasPass, getAllowance, hasPassIssuer, gasEstimator } from "@latticexyz/paymaster/internal";
import { wiresaw } from "@latticexyz/wiresaw/internal";
import { smartAccountActions } from "permissionless";
import { toSimpleSmartAccount } from "permissionless/accounts";
import {
Expand Down Expand Up @@ -34,11 +33,9 @@ export async function getDeployClient(opts: {
const chainId = await getChainId(createClient({ transport: http(opts.rpcUrl) }));
const chain: Chain | undefined = knownChains.find((c) => c.id === chainId);

const transport = wiresaw(
http(opts.rpcUrl, {
batch: opts.rpcBatch ? { batchSize: 100, wait: 1000 } : undefined,
}),
);
const transport = http(opts.rpcUrl, {
batch: opts.rpcBatch ? { batchSize: 100, wait: 1000 } : undefined,
});

const clientOptions = {
chain,
Expand All @@ -62,7 +59,7 @@ export async function getDeployClient(opts: {
const bundlerClient = createBundlerClient({
chain,
// TODO: figure out how to remove gas estimator (currently times out if not present)
transport: gasEstimator(wiresaw(http(bundlerHttpUrl))),
transport: gasEstimator(http(bundlerHttpUrl)),
account,
paymaster: {
getPaymasterData: async () => ({
Expand Down

0 comments on commit a12e037

Please sign in to comment.