Forráskód Böngészése

chore(pricefeeds) Inective EVM as well

Aditya Arora 1 hónapja
szülő
commit
0ae895b0ad

+ 3 - 1
contract_manager/src/core/chains.ts

@@ -563,7 +563,9 @@ export class EvmChain extends Chain {
     web3.eth.accounts.wallet.add(signer);
     const contract = new web3.eth.Contract(abi);
     const deployTx = contract.deploy({ data: bytecode, arguments: deployArgs });
-    const gas = Math.trunc((await deployTx.estimateGas()) * gasMultiplier);
+    const gas = Math.trunc(
+      (await deployTx.estimateGas({ from: signer.address })) * gasMultiplier,
+    );
     const gasPrice = Math.trunc(
       Number(await this.getGasPrice()) * gasPriceMultiplier,
     );

+ 5 - 0
contract_manager/store/contracts/EvmPriceFeedContracts.json

@@ -883,5 +883,10 @@
     "chain": "sonic_evm_testnet",
     "address": "0x2880aB155794e7179c9eE2e38200202908C17B43",
     "type": "EvmPriceFeedContract"
+  },
+  {
+    "chain": "injective_evm",
+    "address": "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",
+    "type": "EvmPriceFeedContract"
   }
 ]

+ 5 - 0
contract_manager/store/contracts/EvmWormholeContracts.json

@@ -893,5 +893,10 @@
     "chain": "sonic_evm_testnet",
     "address": "0xb27e5ca259702f209a29225d0eDdC131039C9933",
     "type": "EvmWormholeContract"
+  },
+  {
+    "chain": "injective_evm",
+    "address": "0x2880aB155794e7179c9eE2e38200202908C17B43",
+    "type": "EvmWormholeContract"
   }
 ]