Skip to content

Commit 90740e4

Browse files
authored
fix(entropy): Small fixes in the contract manager script + contract version bump (#1637)
* fix(entropy): fix bug in debug reveal script * Bump solidity version
1 parent d83b996 commit 90740e4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

contract_manager/scripts/list_entropy_contracts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ async function main() {
4040
chain: contract.getChain().getId(),
4141
contract: contract.address,
4242
provider: providerInfo.uri,
43-
balance,
44-
keeperBalance,
43+
balance: Web3.utils.fromWei(balance),
44+
keeperBalance: Web3.utils.fromWei(keeperBalance),
4545
seq: providerInfo.sequenceNumber,
4646
version,
4747
});

contract_manager/src/contracts/evm.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,8 @@ export class EvmEntropyContract extends Storable {
689689
senderPrivateKey: PrivateKey
690690
) {
691691
const web3 = new Web3(this.chain.getRpcUrl());
692-
const contract = this.getContract();
692+
// can not use `this.getContract()` because it uses another web3 instance without the wallet
693+
const contract = new web3.eth.Contract(EXTENDED_ENTROPY_ABI, this.address);
693694
const { address } = web3.eth.accounts.wallet.add(senderPrivateKey);
694695
const transactionObject = contract.methods.revealWithCallback(
695696
provider,

target_chains/ethereum/contracts/contracts/entropy/EntropyUpgradable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ contract EntropyUpgradable is
105105
}
106106

107107
function version() public pure returns (string memory) {
108-
return "0.3.0";
108+
return "0.3.1";
109109
}
110110
}

0 commit comments

Comments
 (0)