mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-11 08:44:02 +01:00
tx-confirmation-options-on-dev [cw-1463] (#3289)
* add note and contact options to tx confirmation screen * fix closing animation for confirm sheet * fix note button for lightning * sizing fix * add local tx info for evm/sol/trx * fix for xmr/zec * merge * fixes
This commit is contained in:
@@ -153,4 +153,32 @@ class CWTron extends Tron {
|
||||
return tronWallet.tronTokenCurrencies
|
||||
.any((element) => element.contractAddress == contractAddress);
|
||||
}
|
||||
|
||||
@override
|
||||
TransactionInfo getTransactionInfo({
|
||||
required String id,
|
||||
required BigInt tronAmount,
|
||||
int? txFee,
|
||||
String? tokenSymbol,
|
||||
required TransactionDirection direction,
|
||||
required DateTime blockTime,
|
||||
String? to,
|
||||
String? from,
|
||||
required bool isPending,
|
||||
}) =>
|
||||
TronTransactionInfo(id: id,
|
||||
tronAmount: tronAmount,
|
||||
tokenSymbol: tokenSymbol ?? "TRX",
|
||||
txFee: txFee,
|
||||
direction: direction,
|
||||
blockTime: blockTime,
|
||||
to: to,
|
||||
from: from,
|
||||
isPending: isPending);
|
||||
|
||||
@override
|
||||
String getPendingTransactionAmount(PendingTransaction tx) => (tx as PendingTronTransaction).amount;
|
||||
|
||||
@override
|
||||
String getPendingTransactionFee(PendingTransaction tx) => (tx as PendingTronTransaction).amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user