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:
2026-07-12 15:00:49 -07:00
parent 69b311cb47
commit af0bfa1560
@@ -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 {