mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add constructor comment
This commit is contained in:
parent
7b92268428
commit
74c6de7d23
@ -4,6 +4,11 @@ const normalize = require('eth-sig-util').normalize
|
|||||||
|
|
||||||
class PendingBalanceCalculator {
|
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 }) {
|
constructor ({ getBalance, getPendingTransactions }) {
|
||||||
this.getPendingTransactions = getPendingTransactions
|
this.getPendingTransactions = getPendingTransactions
|
||||||
this.getNetworkBalance = getBalance
|
this.getNetworkBalance = getBalance
|
||||||
|
Loading…
Reference in New Issue
Block a user