update enum value name

This commit is contained in:
julian 2023-01-10 17:57:00 -06:00
parent d27af7243c
commit b0c62015a1
3 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ enum TransactionType {
// TODO: add more types before prod release? // TODO: add more types before prod release?
outgoing, outgoing,
incoming, incoming,
sendToSelf, // should we keep this? sentToSelf, // should we keep this?
unknown, unknown,
anonymize; // firo specific anonymize; // firo specific

View file

@ -260,7 +260,7 @@ const _TransactiontypeEnumValueMap = {
const _TransactiontypeValueEnumMap = { const _TransactiontypeValueEnumMap = {
0: TransactionType.outgoing, 0: TransactionType.outgoing,
1: TransactionType.incoming, 1: TransactionType.incoming,
2: TransactionType.sendToSelf, 2: TransactionType.sentToSelf,
3: TransactionType.unknown, 3: TransactionType.unknown,
4: TransactionType.anonymize, 4: TransactionType.anonymize,
}; };

View file

@ -676,7 +676,7 @@ Future<Transaction> parseTransaction(
if (mySentFromAddresses.isNotEmpty && myReceivedOnAddresses.isNotEmpty) { if (mySentFromAddresses.isNotEmpty && myReceivedOnAddresses.isNotEmpty) {
// tx is sent to self // tx is sent to self
tx.type = TransactionType.sendToSelf; tx.type = TransactionType.sentToSelf;
tx.amount = tx.amount =
amountSentFromWallet - amountReceivedInWallet - fee - changeAmount; amountSentFromWallet - amountReceivedInWallet - fee - changeAmount;
} else if (mySentFromAddresses.isNotEmpty) { } else if (mySentFromAddresses.isNotEmpty) {