Skip to content

Commit b10b71b

Browse files
committed
Use filter by nullifier to update unverified balance
1 parent df7798e commit b10b71b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/service/handlers/verify_internal_passport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func VerifyInternalPassport(w http.ResponseWriter, r *http.Request) {
113113
// because we have proof that user is registered on smart contract
114114
// it is main user account, so just remove shared hash and external id from unverified balance
115115
// it allows user to attach external passport to his verified balance
116-
err = BalancesQ(r).FilterBySharedHash(*sharedHash).Update(map[string]any{
116+
err = BalancesQ(r).FilterByNullifier(bySharedHash.Nullifier).Update(map[string]any{
117117
data.ColSharedHash: nil,
118118
data.ColExternalAID: nil,
119119
})

0 commit comments

Comments
 (0)