mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: Bug when building Monero.Com resulting from solana exceptions situated in send viewmodel from cw_solana package (#1893)
This commit is contained in:
parent
301cb3b7e0
commit
a6f61c595f
3 changed files with 22 additions and 13 deletions
|
@ -1,4 +1,5 @@
|
|||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:cw_core/exceptions.dart';
|
||||
|
||||
class SolanaTransactionCreationException implements Exception {
|
||||
final String exceptionMessage;
|
||||
|
@ -20,18 +21,19 @@ class SolanaTransactionWrongBalanceException implements Exception {
|
|||
String toString() => exceptionMessage;
|
||||
}
|
||||
|
||||
class SolanaSignNativeTokenTransactionRentException implements Exception {}
|
||||
|
||||
class SolanaCreateAssociatedTokenAccountException implements Exception {
|
||||
final String exceptionMessage;
|
||||
class SolanaSignNativeTokenTransactionRentException
|
||||
extends SignNativeTokenTransactionRentException {}
|
||||
|
||||
class SolanaCreateAssociatedTokenAccountException extends CreateAssociatedTokenAccountException {
|
||||
SolanaCreateAssociatedTokenAccountException(this.exceptionMessage);
|
||||
|
||||
final String exceptionMessage;
|
||||
}
|
||||
|
||||
class SolanaSignSPLTokenTransactionRentException implements Exception {}
|
||||
class SolanaSignSPLTokenTransactionRentException extends SignSPLTokenTransactionRentException {}
|
||||
|
||||
class SolanaNoAssociatedTokenAccountException implements Exception {
|
||||
const SolanaNoAssociatedTokenAccountException(this.account, this.mint);
|
||||
class SolanaNoAssociatedTokenAccountException extends NoAssociatedTokenAccountException {
|
||||
SolanaNoAssociatedTokenAccountException(this.account, this.mint);
|
||||
|
||||
final String account;
|
||||
final String mint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue