Skip to content

Commit

Permalink
fix: passing gas manager to createConfig should use it (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
moldy530 authored Jul 17, 2024
1 parent 12f9faf commit 5add7ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion account-kit/core/src/createConfig.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ConnectionConfigSchema } from "@aa-sdk/core";
import { DEFAULT_SESSION_MS } from "@account-kit/signer";
import { createStorage, createConfig as createWagmiConfig } from "@wagmi/core";
import { createAccountKitStore } from "./store/store.js";
import { DEFAULT_STORAGE_KEY } from "./store/types.js";
import type {
AlchemyAccountsConfig,
Connection,
CreateConfigProps,
} from "./types.js";
import { createAccountKitStore } from "./store/store.js";

export const DEFAULT_IFRAME_CONTAINER_ID = "alchemy-signer-iframe-container";

Expand Down Expand Up @@ -53,12 +53,14 @@ export const createConfig = (
connectionConfig.connections.forEach(({ chain, ...config }) => {
connections.push({
...ConnectionConfigSchema.parse(config),
gasManagerConfig: config.gasManagerConfig,
chain,
});
});
} else {
connections.push({
...ConnectionConfigSchema.parse(connectionConfig),
gasManagerConfig: connectionConfig.gasManagerConfig,
chain,
});
}
Expand Down

0 comments on commit 5add7ae

Please sign in to comment.