From 594cc7bfa05c4ebe85738c040be5024e7ed9797c Mon Sep 17 00:00:00 2001 From: D Date: Fri, 9 Aug 2024 15:39:33 +0500 Subject: [PATCH] use staking url for staking contract --- src/deps.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/deps.ts b/src/deps.ts index b4b3271..63df280 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -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();