Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriian Chestnykh committed Aug 13, 2024
1 parent 4876860 commit 09f8a7f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkg/services/blockchain/eth/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,22 @@ func (r *Resolver) Resolve(
default:
stateInfo, gistInfo, err = r.resolveLatest(ctx, userID)
}
if err != nil && err.Error() != "identity not found" {

if err != nil && err.Error() != "state not found" {
return services.IdentityState{}, err
}

if err != nil {
idGen, err := core.CheckGenesisStateID(userID.BigInt(), opts.State)
if err != nil {
return services.IdentityState{}, err
}
if !idGen {
return services.IdentityState{}, services.ErrNotFound
}
stateInfo = &contract.IStateStateInfo{}
stateInfo.State = opts.State
}
}

identityState := services.IdentityState{}
Expand Down

0 comments on commit 09f8a7f

Please sign in to comment.