Add constructor comment

feature/default_network_editable
Dan Finlay 7 years ago
parent 7b92268428
commit 74c6de7d23
  1. 5
      app/scripts/lib/pending-balance-calculator.js

@ -4,6 +4,11 @@ const normalize = require('eth-sig-util').normalize
class PendingBalanceCalculator {
// Must be initialized with two functions:
// getBalance => Returns a promise of a BN of the current balance in Wei
// getPendingTransactions => Returns an array of TxMeta Objects,
// which have txParams properties, which include value, gasPrice, and gas,
// all in a base=16 hex format.
constructor ({ getBalance, getPendingTransactions }) {
this.getPendingTransactions = getPendingTransactions
this.getNetworkBalance = getBalance

Loading…
Cancel
Save