Skip to content

Commit

Permalink
address detekt complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Jun 13, 2024
1 parent 1c98aae commit f0d9c11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1,710 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ internal class SkipRoutePayloadProcessor(parser: ParserProtocol) : BaseProcessor
COSMOS
}

// Create custom exceptions for better error handling specificity and expressiveness
@Suppress("TooGenericExceptionThrown")
internal fun getTxType(payload: Map<String, Any>): TxType {
val evm = parser.value(payload, "txs.0.evm_tx")
val cosmos = parser.value(payload, "txs.0.cosmos_tx")
Expand Down
Loading

0 comments on commit f0d9c11

Please sign in to comment.