mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
REF: bip84
This commit is contained in:
parent
3d97ec40e4
commit
5726775a61
@ -282,7 +282,7 @@ export class HDSegwitBech32Wallet extends AbstractHDWallet {
|
||||
for (let vin of tx.vin) {
|
||||
if (vin.addresses.indexOf(this._getExternalAddressByIndex(c)) !== -1) {
|
||||
// this TX is related to our address
|
||||
this._txs_by_external_index[c] = this._txs_by_external_index[c] || {};
|
||||
this._txs_by_external_index[c] = this._txs_by_external_index[c] || [];
|
||||
let clonedTx = Object.assign({}, tx);
|
||||
clonedTx.inputs = tx.vin.slice(0);
|
||||
clonedTx.outputs = tx.vout.slice(0);
|
||||
@ -294,7 +294,7 @@ export class HDSegwitBech32Wallet extends AbstractHDWallet {
|
||||
for (let vout of tx.vout) {
|
||||
if (vout.scriptPubKey.addresses.indexOf(this._getExternalAddressByIndex(c)) !== -1) {
|
||||
// this TX is related to our address
|
||||
this._txs_by_external_index[c] = this._txs_by_external_index[c] || {};
|
||||
this._txs_by_external_index[c] = this._txs_by_external_index[c] || [];
|
||||
let clonedTx = Object.assign({}, tx);
|
||||
clonedTx.inputs = tx.vin.slice(0);
|
||||
clonedTx.outputs = tx.vout.slice(0);
|
||||
|
@ -8,6 +8,7 @@ import { HDLegacyBreadwalletWallet } from '../../class/hd-legacy-breadwallet-wal
|
||||
import { HDLegacyP2PKHWallet } from '../../class/hd-legacy-p2pkh-wallet';
|
||||
import { HDSegwitP2SHWallet } from '../../class/hd-segwit-p2sh-wallet';
|
||||
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
||||
import { HDSegwitBech32Wallet } from '../../class';
|
||||
let EV = require('../../events');
|
||||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
@ -144,6 +145,7 @@ export default class WalletDetails extends Component {
|
||||
|
||||
{(this.state.wallet.type === HDLegacyBreadwalletWallet.type ||
|
||||
this.state.wallet.type === HDLegacyP2PKHWallet.type ||
|
||||
this.state.wallet.type === HDSegwitBech32Wallet.type ||
|
||||
this.state.wallet.type === HDSegwitP2SHWallet.type) && (
|
||||
<React.Fragment>
|
||||
<BlueButton
|
||||
|
Loading…
Reference in New Issue
Block a user