Przeglądaj źródła

fix(entropy): Small fixes in the contract manager script + contract version bump (#1637)

* fix(entropy): fix bug in debug reveal script

* Bump solidity version
Amin Moghaddam 1 rok temu
rodzic
commit
90740e4bb8

+ 2 - 2
contract_manager/scripts/list_entropy_contracts.ts

@@ -40,8 +40,8 @@ async function main() {
         chain: contract.getChain().getId(),
         contract: contract.address,
         provider: providerInfo.uri,
-        balance,
-        keeperBalance,
+        balance: Web3.utils.fromWei(balance),
+        keeperBalance: Web3.utils.fromWei(keeperBalance),
         seq: providerInfo.sequenceNumber,
         version,
       });

+ 2 - 1
contract_manager/src/contracts/evm.ts

@@ -689,7 +689,8 @@ export class EvmEntropyContract extends Storable {
     senderPrivateKey: PrivateKey
   ) {
     const web3 = new Web3(this.chain.getRpcUrl());
-    const contract = this.getContract();
+    // can not use `this.getContract()` because it uses another web3 instance without the wallet
+    const contract = new web3.eth.Contract(EXTENDED_ENTROPY_ABI, this.address);
     const { address } = web3.eth.accounts.wallet.add(senderPrivateKey);
     const transactionObject = contract.methods.revealWithCallback(
       provider,

+ 1 - 1
target_chains/ethereum/contracts/contracts/entropy/EntropyUpgradable.sol

@@ -105,6 +105,6 @@ contract EntropyUpgradable is
     }
 
     function version() public pure returns (string memory) {
-        return "0.3.0";
+        return "0.3.1";
     }
 }