Skip to content

Commit

Permalink
final changes implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
mexes20 committed Oct 8, 2024
1 parent e3b5089 commit ec96589
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions docs/quick-start/configure-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,8 @@ The contracts pulled from the network are determined by the chain configured in
While some contracts may have the same address on both `Sepolia and Mainnet`, this is not always guaranteed. Always double-check you are on the correct network based on the contract's intended usage.

```ts
export type ScaffoldConfig = {
targetNetworks: readonly chains.Chain[];
pollingInterval: number;
onlyLocalBurnerWallet: boolean;
rpcProviderUrl: string;
walletAutoConnect: boolean;
};

const scaffoldConfig = {
targetNetworks: [chains.devnet],
// Only show the Burner Wallet when running on devnet
onlyLocalBurnerWallet: false,
rpcProviderUrl: process.env.NEXT_PUBLIC_PROVIDER_URL || "",
// The interval at which your front-end polls the RPC servers for new data
// it has no effect if you only target the local network (default is 30_000)
pollingInterval: 30_000,
/**
* Auto connect:
* 1. If the user was connected into a wallet before, on page reload reconnect automatically
* 2. If user is not connected to any wallet: On reload, connect to burner wallet if burnerWallet.enabled is true && burnerWallet.onlyLocal is false
*/
walletAutoConnect: true,
} as const satisfies ScaffoldConfig;

export default scaffoldConfig;
```
#### 2. Enter the Contract Address and Name
Expand Down

0 comments on commit ec96589

Please sign in to comment.