Skip to content

Commit

Permalink
Merge pull request #134 from dojoengine/fix-config
Browse files Browse the repository at this point in the history
fix: config setp
  • Loading branch information
ponderingdemocritus authored Feb 8, 2024
2 parents c152a0a + c13649d commit 32c6062
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ interface DojoConfigParams {
*/
export function createDojoConfig({ manifest, ...config }: DojoConfigParams) {
return {
rpcUrl: LOCAL_KATANA || config.rpcUrl,
toriiUrl: LOCAL_TORII || config.toriiUrl,
masterAddress: KATANA_PREFUNDED_ADDRESS || config.masterAddress,
rpcUrl: config.rpcUrl ?? LOCAL_KATANA,
toriiUrl: config.toriiUrl ?? LOCAL_TORII,
masterAddress: config.masterAddress ?? KATANA_PREFUNDED_ADDRESS,
masterPrivateKey:
KATANA_PREFUNDED_PRIVATE_KEY || config.masterPrivateKey,
accountClassHash: KATANA_CLASS_HASH || config.accountClassHash,
config.masterPrivateKey ?? KATANA_PREFUNDED_PRIVATE_KEY,
accountClassHash: config.accountClassHash ?? KATANA_CLASS_HASH,
manifest,
};
}

0 comments on commit 32c6062

Please sign in to comment.