File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
target_chains/ethereum/contracts/contracts/entropy Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ async function main() {
40
40
chain : contract . getChain ( ) . getId ( ) ,
41
41
contract : contract . address ,
42
42
provider : providerInfo . uri ,
43
- balance,
44
- keeperBalance,
43
+ balance : Web3 . utils . fromWei ( balance ) ,
44
+ keeperBalance : Web3 . utils . fromWei ( keeperBalance ) ,
45
45
seq : providerInfo . sequenceNumber ,
46
46
version,
47
47
} ) ;
Original file line number Diff line number Diff line change @@ -689,7 +689,8 @@ export class EvmEntropyContract extends Storable {
689
689
senderPrivateKey : PrivateKey
690
690
) {
691
691
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 ) ;
693
694
const { address } = web3 . eth . accounts . wallet . add ( senderPrivateKey ) ;
694
695
const transactionObject = contract . methods . revealWithCallback (
695
696
provider ,
Original file line number Diff line number Diff line change @@ -105,6 +105,6 @@ contract EntropyUpgradable is
105
105
}
106
106
107
107
function version () public pure returns (string memory ) {
108
- return "0.3.0 " ;
108
+ return "0.3.1 " ;
109
109
}
110
110
}
You can’t perform that action at this time.
0 commit comments