From ea7d5cc9ad4390373dc0b1352c7b9dde463fbef4 Mon Sep 17 00:00:00 2001 From: Banana-J Date: Tue, 6 Feb 2024 22:13:28 +1100 Subject: [PATCH] fix: remove unnecesasry int conversion in the bulletproof.go (#419) Co-authored-by: wjrjerome --- core/vm/privacy/bulletproof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/privacy/bulletproof.go b/core/vm/privacy/bulletproof.go index fab0d5fc7a..f620d230b2 100644 --- a/core/vm/privacy/bulletproof.go +++ b/core/vm/privacy/bulletproof.go @@ -830,7 +830,7 @@ func (ipp *InnerProdArg) Deserialize(proof []byte, numChallenges int) error { if len(proof) <= (offset + 32*numChallenges) { return errors.New("input data too short") } - for i := 0; i < int(numChallenges); i++ { + for i := 0; i < numChallenges; i++ { ipp.Challenges = append(ipp.Challenges, new(big.Int).SetBytes(proof[offset:offset+32])) offset += 32 }