import 'package:cw_core/pending_transaction.dart'; import 'package:web3dart/crypto.dart'; class PendingTronTransaction with PendingTransaction { final Function sendTransaction; final List signedTransaction; final String fee; final String amount; PendingTronTransaction({ required this.sendTransaction, required this.signedTransaction, required this.fee, required this.amount, }); @override String get amountFormatted => amount; @override Future commit() async => await sendTransaction(); @override String get feeFormatted => fee; @override String get hex => bytesToHex(signedTransaction); @override String get id => ''; @override Future commitUR() { throw UnimplementedError(); } }