diff --git a/mobile/big.go b/mobile/big.go index b69728b69efb..c08bcf93f285 100644 --- a/mobile/big.go +++ b/mobile/big.go @@ -38,7 +38,7 @@ func NewBigInt(x int64) *BigInt { // NewBigIntFromString allocates and returns a new BigInt set to x // interpreted in the provided base. func NewBigIntFromString(x string, base int) *BigInt { - b, success := big.NewInt(0).SetString(x, base) + b, success := new(big.Int).SetString(x, base) if !success { return nil }