mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
* feat: Add Open CryptoPay for sending * bug: Fix sending Open CryptoPay for eth * feat: add transaction dismissal * style: remove print statements from OCP * feat: add support for Monero over OCP * bug: Hide "Add to Address Book" on OCP transactions * style: revert code style in send_view_model.dart * style: revert code style in send_view_model.dart * feat: set failure state if it fails to create an OCP transaction * Update lib/view_model/send/send_view_model.dart --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
19 lines
473 B
Dart
19 lines
473 B
Dart
class OpenCryptoPayException implements Exception {
|
|
final String message;
|
|
|
|
OpenCryptoPayException([this.message = '']);
|
|
|
|
@override
|
|
String toString() =>
|
|
'OpenCryptoPayException${message.isNotEmpty ? ': $message' : ''}';
|
|
}
|
|
|
|
class OpenCryptoPayNotSupportedException extends OpenCryptoPayException {
|
|
final String provider;
|
|
|
|
OpenCryptoPayNotSupportedException(this.provider);
|
|
|
|
@override
|
|
String get message => "$provider does not support Open CryptoPay";
|
|
}
|