mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 12:44:31 +00:00
fix: banano address type
This commit is contained in:
parent
3a58955f60
commit
dd7792195c
1 changed files with 14 additions and 18 deletions
|
@ -533,21 +533,17 @@ class BananoWallet extends CoinServiceAPI
|
|||
numberOfMessages: null,
|
||||
);
|
||||
|
||||
Address address = Address(
|
||||
walletId: walletId,
|
||||
publicKey: [],
|
||||
value: transactionType == TransactionType.incoming
|
||||
? publicAddress
|
||||
: tx["account"].toString(),
|
||||
derivationIndex: 0,
|
||||
derivationPath: null,
|
||||
type: transactionType == TransactionType.incoming
|
||||
? AddressType.nonWallet
|
||||
: AddressType.banano,
|
||||
subType: transactionType == TransactionType.incoming
|
||||
? AddressSubType.receiving
|
||||
: AddressSubType.nonWallet,
|
||||
);
|
||||
Address address = transactionType == TransactionType.incoming
|
||||
? receivingAddress
|
||||
: Address(
|
||||
walletId: walletId,
|
||||
publicKey: [],
|
||||
value: tx["account"].toString(),
|
||||
derivationIndex: 0,
|
||||
derivationPath: null,
|
||||
type: AddressType.banano,
|
||||
subType: AddressSubType.nonWallet,
|
||||
);
|
||||
Tuple2<Transaction, Address> tuple = Tuple2(transaction, address);
|
||||
transactionList.add(tuple);
|
||||
}
|
||||
|
@ -611,7 +607,7 @@ class BananoWallet extends CoinServiceAPI
|
|||
publicKey: [], // TODO: add public key
|
||||
derivationIndex: 0,
|
||||
derivationPath: null,
|
||||
type: AddressType.unknown,
|
||||
type: AddressType.banano,
|
||||
subType: AddressSubType.receiving,
|
||||
);
|
||||
|
||||
|
@ -706,10 +702,10 @@ class BananoWallet extends CoinServiceAPI
|
|||
final address = Address(
|
||||
walletId: walletId,
|
||||
value: publicAddress,
|
||||
publicKey: [], // TODO: add public key
|
||||
publicKey: [],
|
||||
derivationIndex: 0,
|
||||
derivationPath: null,
|
||||
type: AddressType.unknown,
|
||||
type: AddressType.banano,
|
||||
subType: AddressSubType.receiving,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue