mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 14:55:48 +00:00
bc9087136c
SecretsSigner.multiChainEncryptionFor() only recognized substrate accounts, standard Ethereum accounts, and explicit per-chain override accounts. A Tron account's accountId matches none of those (same secp256k1 scheme as Ethereum, but a different SLIP-44 derivation path/keypair), so it fell through to null and crashed on the `!!` - found live testing the send flow end-to-end, reproduced on every Confirm tap. Fixing just the null case would have signed Tron transfers with the Ethereum keypair instead of the Tron one (getMetaAccountKeypair only distinguished ethereum/substrate), producing an invalid signature. Threaded a proper isTronBased flag through down to mapMetaAccountSecretsToKeypair so Tron gets its own MetaAccountSecrets.TronKeypair.