Skip to content

Commit

Permalink
feat: make entry point contract as an optional param to SCA class (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswon authored and avasisht23 committed Nov 3, 2023
1 parent 4b62df0 commit 14019a4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions site/smart-accounts/signers/capsule.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ import { sepolia } from "viem/chains";
import { capsuleSigner } from "./capsule";

const chain = sepolia;
const entryPointAddress = getDefaultEntryPointAddress(chain);
const factoryAddress = getDefaultLightAccountFactoryAddress(chain);

const provider = new AlchemyProvider({
apiKey: "ALCHEMY_API_KEY",
chain,
Expand Down
3 changes: 1 addition & 2 deletions site/smart-accounts/signers/dynamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ import { sepolia } from "viem/chains";
import { dynamicSigner } from "./dynamic";

const chain = sepolia;
const entryPointAddress = getDefaultEntryPointAddress(chain);
const factoryAddress = getDefaultLightAccountFactoryAddress(chain);

const provider = new AlchemyProvider({
apiKey: "ALCHEMY_API_KEY",
chain,
Expand Down
2 changes: 0 additions & 2 deletions site/smart-accounts/signers/magic.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ import { sepolia } from "viem/chains";
import { createMagicSigner } from "./magic";

const chain = sepolia;
const entryPointAddress = getDefaultEntryPointContract(chain);
const factoryAddress = getDefaultLightAccountFactory(chain);

// NOTE: the below is async because it depends on creating a magic signer. You can choose to break that up how you want
// eg. use a useEffect + useState to create the signer and then pass it down to the provider
Expand Down
3 changes: 1 addition & 2 deletions site/smart-accounts/signers/turnkey.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ import { newTurnkeySigner } from "./turnkey";
async function main() {
const owner = await newTurnkeySigner();
const chain = sepolia;
const entryPointAddress = getDefaultEntryPointAddress(chain);
const factoryAddress = getDefaultLightAccountFactoryAddress(chain);

const provider = new AlchemyProvider({
apiKey: "ALCHEMY_API_KEY",
chain,
Expand Down
3 changes: 1 addition & 2 deletions site/smart-accounts/signers/web3auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ import { sepolia } from "viem/chains";
import { web3authSigner } from "./web3auth";

const chain = sepolia;
const entryPointAddress = getDefaultEntryPointAddress(chain);
const factoryAddress = getDefaultLightAccountFactoryAddress(chain);

const provider = new AlchemyProvider({
apiKey: "ALCHEMY_API_KEY",
chain,
Expand Down

0 comments on commit 14019a4

Please sign in to comment.