Skip to content

Commit

Permalink
Fixed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Eengineer1 committed Jan 24, 2025
1 parent 775adc8 commit f47d074
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration/cli/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const (
KeyringBackend = "test"
OutputFormat = "json"
Gas = "auto"
GasAdjustment = "2.5"
GasAdjustment = "3.5"
GasPrices = "5000ncheq"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,5 @@ func VoteProposalTx(from, option, id string, feeParams []string) (sdk.TxResponse
}

func SendTokensTx(from, to, amount string, feeParams []string) (sdk.TxResponse, error) {
return Tx("bank", "send", from, feeParams, to, amount)
return Tx("bank", "send", from, feeParams, from, to, amount)
}
4 changes: 3 additions & 1 deletion tests/integration/cli_defi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
package integration

import (
"strconv"

cli "github.com/cheqd/cheqd-node/tests/integration/cli"
helpers "github.com/cheqd/cheqd-node/tests/integration/helpers"

Expand Down Expand Up @@ -128,7 +130,7 @@ var _ = Describe("Upgrade - Feemarket fees (non-taxable transactions)", func() {
coins := sdk.NewCoin(didtypes.BaseMinimalDenom, sdk.NewInt(1_000_000_000))

// define static fees, in which case gas price is multiplied by roughly 2 or greater, times the minimal base denom
feeParams := helpers.GenerateFees(gasPrice.Price.Amount.Mul(sdkmath.LegacyNewDec(2)).Mul(sdkmath.LegacyNewDec(didtypes.BaseFactor)).String())
feeParams := helpers.GenerateFees(strconv.FormatInt(gasPrice.Price.Amount.Mul(sdkmath.LegacyNewDec(2)).Mul(sdkmath.LegacyNewDec(didtypes.BaseFactor)).RoundInt64(), 10))

// send the coins, balance assertions are intentionally omitted or out of scope
res, err := cli.SendTokensTx(testdata.BASE_ACCOUNT_1, testdata.BASE_ACCOUNT_2_ADDR, coins.String(), feeParams)
Expand Down

0 comments on commit f47d074

Please sign in to comment.