Skip to content

Commit 44a2aaf

Browse files
committed
Fix account not found error handling in sponsorship flow
1 parent 072916a commit 44a2aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/services/rpc_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (r *rpcService) GetAccountLedgerSequence(address string) (int64, error) {
158158
return 0, fmt.Errorf("getting ledger entry for account public key: %w", err)
159159
}
160160
if len(result.Entries) == 0 {
161-
return 0, fmt.Errorf("entry not found for account public key")
161+
return 0, fmt.Errorf("%w: entry not found for account public key", ErrAccountNotFound)
162162
}
163163
accountEntry, err := utils.GetAccountFromLedgerEntry(result.Entries[0])
164164
if err != nil {

0 commit comments

Comments
 (0)