From b0178cb38ea4e2123d4d6be1c792078c5a73d469 Mon Sep 17 00:00:00 2001 From: Oleksandr Brezhniev Date: Tue, 7 Nov 2023 11:39:53 +0000 Subject: [PATCH] Fix deprecation warnings by updating the code --- mimc7/mimc7.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mimc7/mimc7.go b/mimc7/mimc7.go index f671858..7e728e9 100644 --- a/mimc7/mimc7.go +++ b/mimc7/mimc7.go @@ -70,7 +70,7 @@ func MIMC7HashGeneric(xInBI, kBI *big.Int, nRounds int) *big.Int { //nolint:goli rE := new(ff.Element).Add(r, k) res := big.NewInt(0) - rE.ToBigIntRegular(res) + rE.BigInt(res) return res } @@ -112,7 +112,7 @@ func MIMC7Hash(xInBI, kBI *big.Int) *big.Int { //nolint:golint rE := new(ff.Element).Add(r, k) res := big.NewInt(0) - rE.ToBigIntRegular(res) + rE.BigInt(res) return res }