mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-21 16:52:00 -07:00
Merge pull request #173 from Permissionless-Software-Foundation/ct-unstable
fix(wallet.adapter): Binding this object to all methods
This commit is contained in:
@@ -20,6 +20,13 @@ class Wallet {
|
|||||||
|
|
||||||
// Bind 'this' object to all subfunctions
|
// Bind 'this' object to all subfunctions
|
||||||
this.instanceWalletWithoutInitialization = this.instanceWalletWithoutInitialization.bind(this)
|
this.instanceWalletWithoutInitialization = this.instanceWalletWithoutInitialization.bind(this)
|
||||||
|
this._instanceWallet = this._instanceWallet.bind(this)
|
||||||
|
this.openWallet = this.openWallet.bind(this)
|
||||||
|
this.instanceWallet = this.instanceWallet.bind(this)
|
||||||
|
this.incrementNextAddress = this.incrementNextAddress.bind(this)
|
||||||
|
this.getKeyPair = this.getKeyPair.bind(this)
|
||||||
|
this.optimize = this.optimize.bind(this)
|
||||||
|
this.getBalance = this.getBalance.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is used for initializing the wallet, without waiting to update the wallet
|
// This is used for initializing the wallet, without waiting to update the wallet
|
||||||
|
|||||||
Reference in New Issue
Block a user