Skip to content

Commit

Permalink
Fix contractAddress in contracts/test/Eip1898 (#309)
Browse files Browse the repository at this point in the history
* `Eip1898.js` always use `contractAddress`
  • Loading branch information
sunchengzhu authored Oct 25, 2023
1 parent c87f098 commit 8f0d2c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/test/Eip1898.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ describe("Eip1898 eth_getCode test", function () {
let contractAddress;

if (isGwMainnetV1()) {
contract.address = mainnetContractAddr;
contractAddress = mainnetContractAddr;
}

before(async function () {
if (contract.address) {
contract = await ethers.getContractAt("BlockInfo", contract.address);
if (contractAddress) {
contract = await ethers.getContractAt("BlockInfo", contractAddress);
return;
}

Expand Down

0 comments on commit 8f0d2c0

Please sign in to comment.