Skip to content

Commit ec5a858

Browse files
committed
feat: Update tx state enum
1 parent ca1a84d commit ec5a858

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

logic/lib/src/domain/entities/transaction_model.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ enum TransactionType { sent, received, contractCall, all, unknown }
66

77
enum TransferType { coin, erc20, erc1155, erc721, none }
88

9-
enum TransactionStatus { done, pending, failed }
9+
enum TransactionStatus {
10+
done('✅'),
11+
pending('⏳'),
12+
failed('❌');
13+
14+
const TransactionStatus(this.icon);
15+
final String icon;
16+
}
1017

1118
/// cancelSpeedUp = null (show both buttons) => speed up => (show cancel) cancel ==> Show nothing
1219
/// speedUpCancel = null (show both buttons) => cancel => (show speed up cancellation) speed up ==> Show speed up cancellation

0 commit comments

Comments
 (0)