diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/entities/TransactionDataSortMode.kt b/app/src/main/java/io/horizontalsystems/bankwallet/entities/TransactionDataSortMode.kt index 2cdd7bd834..5f926d70d6 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/entities/TransactionDataSortMode.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/entities/TransactionDataSortMode.kt @@ -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 -// } -// } -// } } diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapBitcoinTransaction.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapBitcoinTransaction.kt index 419b6651c3..379ecaf1f2 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapBitcoinTransaction.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapBitcoinTransaction.kt @@ -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, diff --git a/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapSerializers.kt b/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapSerializers.kt index cbf0a26637..0df0683195 100644 --- a/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapSerializers.kt +++ b/app/src/main/java/io/horizontalsystems/bankwallet/modules/airgap/transaction/AirGapSerializers.kt @@ -67,17 +67,6 @@ object GasPriceSerializer : KSerializer { decoder.decodeSerializableValue(serializer).toGasPrice() } -//object TransactionDataSortModeSerializer : KSerializer { -// 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 { override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("BlockchainTypeSerializer", PrimitiveKind.STRING)