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

Fix for trufflesuite/ganache-cli#354 #57

Merged
merged 10 commits into from
Jan 23, 2018
4 changes: 3 additions & 1 deletion lib/subproviders/geth_api_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ GethApiDouble.prototype.evm_increaseTime = function(seconds, callback) {
};

GethApiDouble.prototype.evm_mine = function(callback) {
this.state.processBlocks(1, callback);
this.state.processBlocks(1, function(err) {
callback(err, '0x0');
});
};

GethApiDouble.prototype.debug_traceTransaction = function(tx_hash, params, callback) {
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-core",
"version": "3.0.0-beta.0",
"version": "2.1.0-beta.0",
"main": "./index.js",
"directories": {
"lib": "./lib"
Expand Down
5 changes: 3 additions & 2 deletions test/mining.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ describe("Mining", function() {
jsonrpc: "2.0",
method: "evm_mine",
id: new Date().getTime()
}, function(err) {
}, function(err, result) {
if (err) return reject(err);
accept();
assert.deepEqual(result.result, "0x0");
accept(result);
})
});
}
Expand Down