From b6a923fef8fcfb8bdcda07fe68faca215e7493c6 Mon Sep 17 00:00:00 2001 From: yincong Date: Fri, 7 Jun 2024 17:27:45 +0800 Subject: [PATCH] modify var name --- accounts/scwallet/wallet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accounts/scwallet/wallet.go b/accounts/scwallet/wallet.go index 66c216dbf7..0f33111691 100644 --- a/accounts/scwallet/wallet.go +++ b/accounts/scwallet/wallet.go @@ -77,8 +77,8 @@ var ( // PinRegexp is the regular expression used to validate PIN codes. PinRegexp = regexp.MustCompile(`^[0-9]{6,}$`) - // PunRegexp is the regular expression used to validate PUN codes. - PunRegexp = regexp.MustCompile(`^[0-9]{12,}$`) + // PukRegexp is the regular expression used to validate PUK codes. + PukRegexp = regexp.MustCompile(`^[0-9]{12,}$`) ) // List of APDU command-related constants @@ -396,7 +396,7 @@ func (w *Wallet) Open(passphrase string) error { return err } default: - if !PunRegexp.MatchString(passphrase) { + if !PukRegexp.MatchString(passphrase) { w.log.Error("PUK needs to be at least 12 digits") return ErrPINUnblockNeeded }