mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-23 02:35:54 +00:00
fix: thread bitcoinAddress/bitcoinPublicKey through PolkadotVaultMetaAccount
CI caught "no parameter with name 'bitcoinAddress'" in AccountMappers.kt - every other MetaAccount subclass got these constructor params threaded through in the Phase 2 batch, but PolkadotVaultMetaAccount only got the isBitcoinBased guard in supportsAddingChainAccount(), not the params.
This commit is contained in:
+5
-1
@@ -22,6 +22,8 @@ class PolkadotVaultMetaAccount(
|
|||||||
parentMetaId: Long?,
|
parentMetaId: Long?,
|
||||||
tronAddress: ByteArray? = null,
|
tronAddress: ByteArray? = null,
|
||||||
tronPublicKey: ByteArray? = null,
|
tronPublicKey: ByteArray? = null,
|
||||||
|
bitcoinAddress: ByteArray? = null,
|
||||||
|
bitcoinPublicKey: ByteArray? = null,
|
||||||
) : DefaultMetaAccount(
|
) : DefaultMetaAccount(
|
||||||
id = id,
|
id = id,
|
||||||
globallyUniqueId = globallyUniqueId,
|
globallyUniqueId = globallyUniqueId,
|
||||||
@@ -37,7 +39,9 @@ class PolkadotVaultMetaAccount(
|
|||||||
chainAccounts = chainAccounts,
|
chainAccounts = chainAccounts,
|
||||||
parentMetaId = parentMetaId,
|
parentMetaId = parentMetaId,
|
||||||
tronAddress = tronAddress,
|
tronAddress = tronAddress,
|
||||||
tronPublicKey = tronPublicKey
|
tronPublicKey = tronPublicKey,
|
||||||
|
bitcoinAddress = bitcoinAddress,
|
||||||
|
bitcoinPublicKey = bitcoinPublicKey
|
||||||
) {
|
) {
|
||||||
|
|
||||||
override suspend fun supportsAddingChainAccount(chain: Chain): Boolean {
|
override suspend fun supportsAddingChainAccount(chain: Chain): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user