Skip to content

Commit

Permalink
use staking url for staking contract
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Aug 9, 2024
1 parent 8f35f99 commit 594cc7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,14 @@ export async function configDeps(
logger: LogInstance,
) {
const storageProvider = new JsonRpcProvider(config.storageConfig.rpcURL);
const stakingProvider = new JsonRpcProvider(config.stakingConfig.rpcURL);
const storage = BridgeStorage__factory.connect(
config.storageConfig.contractAddress,
new NonceManager(new Wallet(secrets.evmWallet.privateKey, storageProvider)),
);
const staking = ERC20Staking__factory.connect(
config.stakingConfig.contractAddress,
new NonceManager(new Wallet(secrets.evmWallet.privateKey, storageProvider)),
new NonceManager(new Wallet(secrets.evmWallet.privateKey, stakingProvider)),
);
const orm = await MikroORM.init(MikroOrmConfig);
await orm.schema.updateSchema();
Expand Down

0 comments on commit 594cc7b

Please sign in to comment.