diff --git a/bindings/ud.go b/bindings/ud.go index 005fc05bbd04cad457cace0890ea4c079d9e9507..ee7774cbebf2ab4523aaa713c3e0d6912e94ac27 100644 --- a/bindings/ud.go +++ b/bindings/ud.go @@ -220,7 +220,6 @@ func NewOrLoadUd(e2eID int, follower UdNetworkStatus, username string, // may use the UD server run by the xx network team by using // [E2e.GetUdAddressFromNdf]. func NewUdManagerFromBackup(e2eID int, follower UdNetworkStatus, - usernameJson, emailFactJson, phoneFactJson, cert, contactFile []byte, address string) (*UserDiscovery, error) { // Get user from singleton @@ -229,30 +228,6 @@ func NewUdManagerFromBackup(e2eID int, follower UdNetworkStatus, return nil, err } - var email, phone, username fact.Fact - - // Parse email if non-nil - if emailFactJson != nil { - err = json.Unmarshal(emailFactJson, &email) - if err != nil { - return nil, err - } - } - - // Parse phone if non-nil - if phoneFactJson != nil { - err = json.Unmarshal(phoneFactJson, &phone) - if err != nil { - return nil, err - } - } - - // Parse username - err = json.Unmarshal(usernameJson, &username) - if err != nil { - return nil, err - } - UdNetworkStatusFn := func() xxdk.Status { return xxdk.Status(follower.UdNetworkStatus()) }