fix: Upgrade status-go to the most recent version of release branch which contains memory fix
Fix #4990
This commit is contained in:
committed by
Michał Iskierko
parent
03d490156a
commit
66cf3d21b9
4
vendor/github.com/status-im/status-go/account/onboarding.go
generated
vendored
4
vendor/github.com/status-im/status-go/account/onboarding.go
generated
vendored
@@ -89,10 +89,8 @@ func (o *Onboarding) generateAccount(mnemonicPhraseLength int) (*OnboardingAccou
|
||||
ChatPubKey: walletPubKey,
|
||||
}
|
||||
|
||||
uuid := uuid.NewRandom().String()
|
||||
|
||||
account := &OnboardingAccount{
|
||||
ID: uuid,
|
||||
ID: uuid.NewRandom().String(),
|
||||
mnemonic: mnemonicPhrase,
|
||||
Info: info,
|
||||
}
|
||||
|
||||
32
vendor/github.com/status-im/status-go/account/utils.go
generated
vendored
32
vendor/github.com/status-im/status-go/account/utils.go
generated
vendored
@@ -1,7 +1,6 @@
|
||||
package account
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
@@ -32,37 +31,6 @@ func (e *ErrZeroAddress) Error() string {
|
||||
return fmt.Sprintf("%s contains an empty address", e.field)
|
||||
}
|
||||
|
||||
func newErrZeroAddress(field string) *ErrZeroAddress {
|
||||
return &ErrZeroAddress{
|
||||
field: field,
|
||||
}
|
||||
}
|
||||
|
||||
func ParseLoginParams(paramsJSON string) (LoginParams, error) {
|
||||
var (
|
||||
params LoginParams
|
||||
zeroAddress types.Address
|
||||
)
|
||||
if err := json.Unmarshal([]byte(paramsJSON), ¶ms); err != nil {
|
||||
return params, err
|
||||
}
|
||||
|
||||
if params.ChatAddress == zeroAddress {
|
||||
return params, newErrZeroAddress("ChatAddress")
|
||||
}
|
||||
|
||||
if params.MainAccount == zeroAddress {
|
||||
return params, newErrZeroAddress("MainAccount")
|
||||
}
|
||||
|
||||
for _, address := range params.WatchAddresses {
|
||||
if address == zeroAddress {
|
||||
return params, newErrZeroAddress("WatchAddresses")
|
||||
}
|
||||
}
|
||||
return params, nil
|
||||
}
|
||||
|
||||
// Info contains wallet and chat addresses and public keys of an account.
|
||||
type Info struct {
|
||||
WalletAddress string
|
||||
|
||||
Reference in New Issue
Block a user