-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the ability to pass extra parameters to call
- Loading branch information
Showing
10 changed files
with
1,882 additions
and
1,204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
"use strict"; | ||
|
||
require("core-js/modules/web.dom.iterable"); | ||
|
||
var _index = _interopRequireDefault(require("./index")); | ||
|
||
var _web = _interopRequireDefault(require("web3")); | ||
|
||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
|
||
const web3 = new _web.default("wss://ws-eth.mewapi.io"); | ||
const tb = new _index.default(web3.currentProvider); | ||
tb.getBalance("0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D").then(balances => { | ||
balances.forEach(element => { | ||
var web3 = new _web.default("wss://ws-eth.mewapi.io"); | ||
var tb = new _index.default(web3.currentProvider); | ||
tb.getBalance("0xDECAF9CD2367cdbb726E904cD6397eDFcAe6068D").then(function (balances) { | ||
balances.forEach(function (element) { | ||
if (element.symbol === "REP") console.log(element); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.