Skip to content

Commit fcd5fb7

Browse files
committed
deprecate BalanceResponse.revocable in favor of authorizedToMaintainLiabilities
1 parent fcfbd7e commit fcd5fb7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/rpc/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ export namespace Api {
572572
authorized: boolean;
573573
clawback: boolean;
574574
authorizedToMaintainLiabilities?: boolean; // only present for trustlines
575-
575+
/** @deprecated Please use `authorizedToMaintainLiabilities` instead */
576+
revocable?: boolean;
576577
lastModifiedLedgerSeq?: number;
577578
liveUntilLedgerSeq?: number;
578579
};

src/rpc/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ export class RpcServer {
421421
authorized: Boolean(tl.flags() & 0x1), // AUTHORIZED_FLAG
422422
clawback: Boolean(tl.flags() & 0x4), // TRUSTLINE_CLAWBACK_ENABLED_FLAG
423423
authorizedToMaintainLiabilities: Boolean(tl.flags() & 0x2), // AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
424+
revocable: Boolean(tl.flags() & 0x2), // AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG (deprecated, will be removed in a future major release)
424425
},
425426
};
426427
} else if (StrKey.isValidContract(addr)) {

0 commit comments

Comments
 (0)