Skip to content

Commit

Permalink
remove promo
Browse files Browse the repository at this point in the history
  • Loading branch information
polstianka committed Oct 24, 2024
1 parent af12ab4 commit e1d3a82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.tonapps.signer.deeplink.entities

import android.net.Uri
import com.tonapps.blockchain.ton.TonNetwork
import com.tonapps.blockchain.ton.extensions.parseCell
import com.tonapps.blockchain.ton.extensions.cellFromHex
import com.tonapps.blockchain.ton.extensions.safePublicKey
import com.tonapps.extensions.getMultipleQuery
import com.tonapps.signer.Key
Expand All @@ -27,7 +27,7 @@ data class SignRequestEntity(

private val tonNetwork: String = uri.getMultipleQuery("tn", "network") ?: "mainnet"

val body: Cell = uri.getQueryParameter(Key.BODY)?.parseCell() ?: throw IllegalArgumentException("body is required")
val body: Cell = uri.getQueryParameter(Key.BODY)?.cellFromHex() ?: throw IllegalArgumentException("body is required")
val publicKey: PublicKeyEd25519 = uri.getQueryParameter(Key.PK)?.safePublicKey() ?: throw IllegalArgumentException("pk is required")

val network: TonNetwork = if (tonNetwork == "mainnet" || tonNetwork == "-239") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package com.tonapps.signer.screen.sign

import android.os.Bundle
import com.tonapps.blockchain.ton.TonNetwork
import com.tonapps.blockchain.ton.extensions.cellFromHex
import com.tonapps.blockchain.ton.extensions.hex
import com.tonapps.blockchain.ton.extensions.parseCell
import com.tonapps.signer.Key
import com.tonapps.signer.deeplink.entities.ReturnResultEntity
import com.tonapps.signer.extensions.getEnum
Expand Down Expand Up @@ -33,7 +33,7 @@ data class SignArgs(private val args: Bundle) {
}

val id = args.getLong(Key.ID)
val body: Cell = args.getString(Key.BODY)!!.parseCell()
val body: Cell = args.getString(Key.BODY)!!.cellFromHex()
val v: String = args.getString(Key.V)!!
val returnResult = args.getObject<ReturnResultEntity>(Key.RETURN)
val seqno = args.getInt(Key.SEQNO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ data class ConfigEntity(
batteryReservedAmount = json.optString("batteryReservedAmount", "0.3"),
batteryMaxInputAmount = json.optString("batteryMaxInputAmount", "3"),
batteryRefundEndpoint = json.optString("batteryRefundEndpoint", "https://battery-refund-app.vercel.app"),
batteryPromoDisable = json.optBoolean("disable_battery_promo_module", true),
batteryPromoDisable = false, // json.optBoolean("disable_battery_promo_module", true),
stakingInfoUrl = json.getString("stakingInfoUrl"),
tonapiSSEEndpoint = json.optString("tonapi_sse_endpoint", "https://rt.tonapi.io"),
tonapiSSETestnetEndpoint = json.optString("tonapi_sse_testnet_endpoint", "https://rt-testnet.tonapi.io"),
Expand Down

0 comments on commit e1d3a82

Please sign in to comment.