Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Fix forking.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincburns committed Feb 16, 2018
1 parent 279c816 commit cc22f5b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ var Ganache = require("ganache-core");
var pkg = require("./package.json");
var corepkg = require("./node_modules/ganache-core/package.json");
var URL = require("url");
var Web3 = require("web3");
var web3 = new Web3(); // Used only for its BigNumber library.
var fs = require("fs");
var to = require("ganache-core/lib/utils/to");

var parser = yargs()
.option("unlock", {
Expand Down Expand Up @@ -229,7 +228,7 @@ server.listen(options.port, options.hostname, function(err, result) {
console.log("Forked Chain");
console.log("==================");
console.log("Location: " + fork_address);
console.log("Block: " + web3.toBigNumber(state.blockchain.fork_block_number).toString(10));
console.log("Block: " + to.number(state.blockchain.fork_block_number));
console.log("Network ID: " + state.net_version);
console.log("Time: " + (state.blockchain.startTime || new Date()).toString());
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ganache-cli",
"version": "6.1.0-beta.1",
"version": "6.1.0-beta.2",
"bin": {
"ganache-cli": "./build/cli.node.js"
},
Expand Down

0 comments on commit cc22f5b

Please sign in to comment.