Commit 8225a065 authored by duanjinfei's avatar duanjinfei

change verify condition

parent 88886121
...@@ -1164,7 +1164,7 @@ func PrSpErc20ApproveTranCase(txCount int, testAccArr *tool.AccArrFormat, contra ...@@ -1164,7 +1164,7 @@ func PrSpErc20ApproveTranCase(txCount int, testAccArr *tool.AccArrFormat, contra
log.Error("Get erc20 balanceOf error:", err.Error()) log.Error("Get erc20 balanceOf error:", err.Error())
res = false res = false
} }
if of.Sub(of, beforeFromToAllowanceArr[i]) != amount { if of.Sub(of, beforeFromToAllowanceArr[i]).Cmp(amount) != 0 {
res = false res = false
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment