Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: passing gas manager to createConfig should use it #836

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading