Skip to content

Commit

Permalink
add flag
Browse files Browse the repository at this point in the history
  • Loading branch information
achowdhry-ripple committed Dec 5, 2024
1 parent 4f4a23b commit 6a22991
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/xrpl/src/models/ledger/Credential.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { GlobalFlags } from '../transactions/common'
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'

export interface CredentialFlags extends GlobalFlags {
lsfAccepted?: boolean
}

/**
*
* A Credential object describes a credential, similar to a passport, which is an issuable identity verifier
Expand All @@ -10,10 +15,9 @@ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
export default interface Credential extends BaseLedgerEntry, HasPreviousTxnID {
LedgerEntryType: 'Credential'
/**
* A bit-map of boolean flags. No flags are defined for Credentials, so this value
* is always 0.
* A bit-map of boolean flags
*/
Flags: number
Flags: number | CredentialFlags

/** The account that the credential is for. */
Subject: string
Expand Down

0 comments on commit 6a22991

Please sign in to comment.