mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Move getNewAddress(account) to HDWalletApi (#4540)
This commit is contained in:
parent
a2e7c428cf
commit
44e09270d9
@ -44,6 +44,8 @@ trait HDWalletApi extends WalletApi {
|
||||
|
||||
def getUnconfirmedBalance(account: HDAccount): Future[CurrencyUnit]
|
||||
|
||||
def getNewAddress(account: HDAccount): Future[BitcoinAddress]
|
||||
|
||||
/** Generates a new change address */
|
||||
def getNewChangeAddress(account: AccountDb): Future[BitcoinAddress]
|
||||
|
||||
|
@ -229,6 +229,10 @@ class WalletHolder(implicit ec: ExecutionContext)
|
||||
override def getNewAddress(addressType: AddressType): Future[BitcoinAddress] =
|
||||
delegate(_.getNewAddress(addressType))
|
||||
|
||||
override def getNewAddress(account: HDAccount): Future[BitcoinAddress] = {
|
||||
delegate(_.getNewAddress(account))
|
||||
}
|
||||
|
||||
override def getNewAddress(): Future[BitcoinAddress] = delegate(
|
||||
_.getNewAddress())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user