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

Commit ea7bdf2

Browse files
authored
Merge pull request #173 from tjade273/master
Implement rpc_modules for `geth attach` compatibility.
2 parents 9df8d04 + 6744171 commit ea7bdf2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/subproviders/geth_api_double.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ GethApiDouble.prototype.net_version = function(callback) {
244244
callback(null, this.state.net_version + "");
245245
};
246246

247+
GethApiDouble.prototype.rpc_modules = function(callback) {
248+
// returns the availible api modules and versions
249+
callback(null, {"eth":"1.0","net":"1.0","rpc":"1.0","web3":"1.0","evm":"1.0"});
250+
};
251+
247252
/* Functions for testing purposes only. */
248253

249254
GethApiDouble.prototype.evm_snapshot = function(callback) {

0 commit comments

Comments
 (0)