diff --git a/contracts/config/mainnet-contracts.json b/contracts/config/mainnet-contracts.json index 4adc10a4..69055564 100644 --- a/contracts/config/mainnet-contracts.json +++ b/contracts/config/mainnet-contracts.json @@ -1,3 +1,3 @@ { - "BlockInfo": "0xfB243051AE5cB157240a3bA79678e1DF8e6EFDb7" + "BlockInfo": "0xE531b37bC28A171dce51EfD3710b56aa813167FB" } diff --git a/contracts/test/BlockInfo.js b/contracts/test/BlockInfo.js index 5e18ff24..86e0217a 100644 --- a/contracts/test/BlockInfo.js +++ b/contracts/test/BlockInfo.js @@ -84,9 +84,11 @@ describe("BlockInfo Contract", function () { // should be equal to zero expect(eventBlockHash).to.be.equal("0x0000000000000000000000000000000000000000000000000000000000000000") - // Triggering the event for the previous block hash - const prevTx = await contract.getFunction("executePreviousBlockHash").send().then(tx => tx.wait()); + const prevTx = await contract.getFunction("executePreviousBlockHash").send().then(tx => { + console.log("call BlockInfo.executePreviousBlockHash, tx_hash, :", tx.hash); + return tx.wait() + }); const prevTxBlockNumber = prevTx.blockNumber - 1; const prevTxBlockHash = (await ethers.provider.getBlock(prevTxBlockNumber)).hash;