We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8bc9a commit d6d71b3Copy full SHA for d6d71b3
contract/r/gnoswap/v1/router/fuzz_test.gno
@@ -1038,14 +1038,12 @@ func TestFuzzFinalizeSwap(t *testing.T) {
1038
)
1039
1040
// verify amountIn is positive string
1041
- inVal, err := strconv.ParseInt(amountIn, 10, 64)
1042
- if err != nil || inVal <= 0 {
+ if amountIn.Int64() <= 0 {
1043
t.Errorf("Invalid amountIn: %s", amountIn)
1044
}
1045
1046
// verify amountOut is negative string
1047
- outVal, err := strconv.ParseInt(amountOut, 10, 64)
1048
- if err != nil || outVal >= 0 {
+ if amountOut.Int64() >= 0 {
1049
t.Errorf("Invalid amountOut: %s (should be negative)", amountOut)
1050
1051
}()
0 commit comments