Skip to content

Commit

Permalink
Sample config updated, /search added
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemKo7v committed Jul 28, 2016
1 parent f1416b2 commit 59a6fd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions cfg/config.ethplorer.sample.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var testnet = true;
var urlEthplorer = '127.0.0.1';
var urlEtherscan = 'http://' + (testnet ? 'testnet.' : '') + 'etherscan.io/';
Ethplorer.Config = {
testnet: false,
ethService: 'https://ethereumServiceAddress'
};
5 changes: 4 additions & 1 deletion js/ethplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ Ethplorer = {
case 'address':
Ethplorer.getAddressDetails(pathData.arg);
break;
case 'search':
Ethplorer.search(pathData.arg);
break;
/*
case 'token':
showTokenDetails(pathData.arg);
break;
*/
default:
Ethplorer.error('Oops, nothing to do');
Ethplorer.error('Invalid action');
}
},
scroller: function(){
Expand Down

0 comments on commit 59a6fd9

Please sign in to comment.