Skip to content

Commit

Permalink
fix secondary constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
luca992 committed Oct 31, 2022
1 parent 3a34a9e commit 79ce155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ private constructor(
gas = txOptions.gasLimit,
amount = listOf(
Coin(
txOptions.feeDenom,
gasToFee(txOptions.gasLimit, txOptions.gasPriceInFeeDenom)
gasToFee(txOptions.gasLimit, txOptions.gasPriceInFeeDenom),
txOptions.feeDenom
)
),
granter = txOptions.feeGranter
Expand Down
4 changes: 2 additions & 2 deletions secretk/src/commonMain/kotlin/io/eqoty/secretk/types/Coin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ data class Coin(
val amount: String,
val denom: String
) {
constructor(denom: String, amount: Int) : this(amount.toString(), denom)
constructor(denom: String, amount: BigInteger) : this(amount.toString(), denom)
constructor(amount: Int, denom: String) : this(amount.toString(), denom)
constructor(amount: BigInteger, denom: String) : this(amount.toString(), denom)

fun toProto() = CoinProto(denom, amount)

Expand Down

0 comments on commit 79ce155

Please sign in to comment.