Skip to content

Commit

Permalink
Fix deprecation warnings by updating the code
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev committed Nov 7, 2023
1 parent 1cd1e03 commit b0178cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mimc7/mimc7.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit b0178cb

Please sign in to comment.