burner-connector
Version:
1. Install the dependencies:
15 lines • 653 B
JavaScript
import { createConnector } from "wagmi";
import { burner } from "../../burnerConnector/burner.js";
export const rainbowkitBurnerConnector = (walletDetails, burnerWalletConfig) => {
return createConnector((config) => ({
...burner({ rpcUrls: burnerWalletConfig?.rpcUrls })(config),
...walletDetails,
}));
};
export const rainbowkitSessionStorageBurnerConnector = (walletDetails, burnerWalletConfig) => {
return createConnector((config) => ({
...burner({ useSessionStorage: true, rpcUrls: burnerWalletConfig?.rpcUrls })(config),
...walletDetails,
}));
};
//# sourceMappingURL=rainbowkitBurnerConnector.js.map