Skip to content

Commit

Permalink
Merge branch 'release/1.0.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
Foboz committed Oct 29, 2019
2 parents 64c7c66 + fd1acf5 commit 1040f3c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Release 1.0.8 (19102701)

- Fixed a rare crash when signing a transaction related to deploying a new smart contract

### Release 1.0.7 (19092401)

- Fixed a rare case with truncated words in Backup scenario
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'org.jetbrains.kotlin.android.extensions'

int MAJOR_VERSION = 1
int MINOR_VERSION = 0
int MICRO_VERSION = 7
int MICRO_VERSION = 8
int BUILD_FOR_TODAY = 1

def secretsPropertiesFile = rootProject.file("secrets.properties")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data class Transaction(
val nonce: BigInteger,
val gasPrice: BigInteger,
val gas: BigInteger,
val to: String,
val to: String?,
val value: BigInteger,
val data: String,
val chainId: Long,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ConfirmTransactionFragment : BaseViewModelFragment(), AuthCallback {
isUnknownToken = transactionData?.function == TransactionData.FUNCTION_TOKEN_TRANSFER
val currency: String
val amount: BigDecimal
val to: String
val to: String?
if (transaction.value == BigInteger.ZERO && transactionData?.function == TransactionData.FUNCTION_TOKEN_TRANSFER) {
if (transaction.currency == null) {
amount = transactionData.amount.toBigDecimal().stripTrailingZeros()
Expand All @@ -94,7 +94,9 @@ class ConfirmTransactionFragment : BaseViewModelFragment(), AuthCallback {
confirm_transaction_network_container.visibility = GONE
}

confirm_transaction_wallet_emoticon.setImageBitmap(EmoticonHelper.draw(to, resources.getDimension(R.dimen.dimen_32dp).toInt()))
to?.let {
confirm_transaction_wallet_emoticon.setImageBitmap(EmoticonHelper.draw(to, resources.getDimension(R.dimen.dimen_32dp).toInt()))
}
confirm_transaction_ok.setOnClickListener {
val authFragment = AuthFragment.newInstance()
authFragment.setTargetFragment(this, AUTH_REQUEST_CODE)
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:3.5.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down

0 comments on commit 1040f3c

Please sign in to comment.