Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
reconvert networkID number to hex & strip prepended 0x to match fabri…
Browse files Browse the repository at this point in the history
…c-evm chain behavior (scenarios/migrations/fabric-evm)
  • Loading branch information
CruzMolina committed Aug 21, 2019
1 parent ed04891 commit 664ba2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/truffle/test/scenarios/migrations/fabric-evm.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ describe("migrate with [ @fabric-evm ] interface", function() {
reporter: new Reporter(logger)
};

const provider = new Web3.providers.HttpProvider("http://localhost:8545", {
const provider = new Web3.providers.HttpProvider("http://localhost:5000", {
keepAlive: false
});
web3 = new Web3(provider);
networkId = await web3.eth.net.getId();
networkId = web3.utils.numberToHex(networkId).replace("0x", "");
});

it("runs migrations (sync & async/await)", async () => {
Expand Down

0 comments on commit 664ba2a

Please sign in to comment.