mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-23 19:05:51 +00:00
update enum value name
This commit is contained in:
parent
d27af7243c
commit
b0c62015a1
3 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ enum TransactionType {
|
|||
// TODO: add more types before prod release?
|
||||
outgoing,
|
||||
incoming,
|
||||
sendToSelf, // should we keep this?
|
||||
sentToSelf, // should we keep this?
|
||||
unknown,
|
||||
anonymize; // firo specific
|
||||
|
||||
|
|
|
@ -260,7 +260,7 @@ const _TransactiontypeEnumValueMap = {
|
|||
const _TransactiontypeValueEnumMap = {
|
||||
0: TransactionType.outgoing,
|
||||
1: TransactionType.incoming,
|
||||
2: TransactionType.sendToSelf,
|
||||
2: TransactionType.sentToSelf,
|
||||
3: TransactionType.unknown,
|
||||
4: TransactionType.anonymize,
|
||||
};
|
||||
|
|
|
@ -676,7 +676,7 @@ Future<Transaction> parseTransaction(
|
|||
|
||||
if (mySentFromAddresses.isNotEmpty && myReceivedOnAddresses.isNotEmpty) {
|
||||
// tx is sent to self
|
||||
tx.type = TransactionType.sendToSelf;
|
||||
tx.type = TransactionType.sentToSelf;
|
||||
tx.amount =
|
||||
amountSentFromWallet - amountReceivedInWallet - fee - changeAmount;
|
||||
} else if (mySentFromAddresses.isNotEmpty) {
|
||||
|
|
Loading…
Reference in a new issue