Skip to content

Commit

Permalink
change to newintwithdecimal
Browse files Browse the repository at this point in the history
  • Loading branch information
keyleu committed Nov 30, 2023
1 parent 39769ba commit d474741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-tests/coreum/contract_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1128,15 +1128,15 @@ func TestSendFromXRPLToCoreumCoreumOriginatedTokenWithDifferentSendingPrecision(
maxHoldingAmount: highMaxHoldingAmount,
sendingAmount: integrationtests.ConvertStringWithDecimalsToSDKInt(t, "0.15567", 20),
wantReceivedAmount: integrationtests.ConvertStringWithDecimalsToSDKInt(t, "0.15", 20),
xrplSendingAmount: sdkmath.NewInt(150_000_000_000_000),
xrplSendingAmount: sdkmath.NewIntWithDecimal(15, 13)//sdkmath.NewInt(150_000_000_000_000),
},
{
name: "positive_precision_low_amount",
sendingPrecision: 2,
decimals: 13,
maxHoldingAmount: highMaxHoldingAmount,
sendingAmount: integrationtests.ConvertStringWithDecimalsToSDKInt(t, "0.009999", 13),
xrplSendingAmount: sdkmath.NewInt(9_999_900_000_000),
xrplSendingAmount: sdkmath.NewIntWithDecimal(9999, 8),
wantIsAmountSentIsZeroAfterTruncationError: true,
},
{
Expand Down

0 comments on commit d474741

Please sign in to comment.