Skip to content

Commit

Permalink
style: use expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
dtscalac committed May 9, 2024
1 parent 9c6c56f commit ed86db5
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ class MaxTxSizeExceededException implements Exception {
});

@override
String toString() {
return 'MaxTxSizeExceededException('
'maxTxSize=$maxTxSize'
', actualTxSize:$actualTxSize'
')';
}
String toString() => 'MaxTxSizeExceededException('
'maxTxSize=$maxTxSize'
', actualTxSize:$actualTxSize'
')';
}

/// Exception thrown when building a transaction that doesn't specify the fee.
Expand All @@ -27,9 +25,7 @@ class TxFeeNotSpecifiedException implements Exception {
const TxFeeNotSpecifiedException();

@override
String toString() {
return 'TxFeeNotSpecifiedException';
}
String toString() => 'TxFeeNotSpecifiedException';
}

/// Exception thrown when parsing a transaction hash that has incorrect length.
Expand All @@ -38,9 +34,7 @@ class TransactionHashFormatException implements Exception {
const TransactionHashFormatException();

@override
String toString() {
return 'TransactionHashFormatException';
}
String toString() => 'TransactionHashFormatException';
}

/// Exception thrown if the address doesn't match the bech32 specification
Expand Down

0 comments on commit ed86db5

Please sign in to comment.