mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
CW-829 Solana Enhancements (#1858)
* feat: Solana enhancements with rent handling for accounts * fix: Add exception classes with handled error messages to ensure proper error handling process --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
9a60b0146f
commit
c620d7f486
32 changed files with 206 additions and 18 deletions
|
@ -19,3 +19,20 @@ class SolanaTransactionWrongBalanceException implements Exception {
|
|||
@override
|
||||
String toString() => exceptionMessage;
|
||||
}
|
||||
|
||||
class SolanaSignNativeTokenTransactionRentException implements Exception {}
|
||||
|
||||
class SolanaCreateAssociatedTokenAccountException implements Exception {
|
||||
final String exceptionMessage;
|
||||
|
||||
SolanaCreateAssociatedTokenAccountException(this.exceptionMessage);
|
||||
}
|
||||
|
||||
class SolanaSignSPLTokenTransactionRentException implements Exception {}
|
||||
|
||||
class SolanaNoAssociatedTokenAccountException implements Exception {
|
||||
const SolanaNoAssociatedTokenAccountException(this.account, this.mint);
|
||||
|
||||
final String account;
|
||||
final String mint;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue