Skip to content

Commit

Permalink
Remove not needed TransactionDataSortMode serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian8j2 committed Dec 9, 2024
1 parent 0e4ea3d commit ac567f3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,4 @@ enum class TransactionDataSortMode(val raw: String) {
Bip69 -> R.string.SettingsSecurity_SortingBip69Description
}

// companion object {
// fun fromRaw(input: String): TransactionDataSortMode? {
// return values().find {
// it.raw == input
// }
// }
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ data class AirGapBitcoinTransaction(
)

override fun sign(): AirGapSignature {
// TODO: make sign not change bitcoin address
val signedTransaction = adapter!!.sign(
amount = amount,
address = to,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,6 @@ object GasPriceSerializer : KSerializer<GasPrice> {
decoder.decodeSerializableValue(serializer).toGasPrice()
}

//object TransactionDataSortModeSerializer : KSerializer<TransactionDataSortMode> {
// override val descriptor: SerialDescriptor =
// PrimitiveSerialDescriptor("TransactionDataSortModeSerializer", PrimitiveKind.STRING)
//
// override fun serialize(encoder: Encoder, value: TransactionDataSortMode) =
// encoder.encodeString(value.raw)
//
// override fun deserialize(decoder: Decoder): TransactionDataSortMode =
// TransactionDataSortMode.fromRaw(decoder.decodeString())!!
//}

object BlockchainTypeSerializer : KSerializer<BlockchainType> {
override val descriptor: SerialDescriptor =
PrimitiveSerialDescriptor("BlockchainTypeSerializer", PrimitiveKind.STRING)
Expand Down

0 comments on commit ac567f3

Please sign in to comment.