You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In writing code for setting account flags, it would be nice to be able to use the relevant enum:
importstaticorg.stellar.sdk.xdr.AccountFlags.*;
newSetOptionsOperation.Builder()
.setSetFlags(AUTH_REQUIRED_FLAG.getValue() | AUTH_REVOCABLE_FLAG.getValue())
.build();
// the above is more clear than:newSetOptionsOperation.Builder()
.setSetFlags(1 | 2)
.build();
…but the XDR bits are not documented, so someone wouldn't know those exist without browsing the source. It would be nice if these were documented somehow (not sure how easy that is since the XDR is generated).
The text was updated successfully, but these errors were encountered:
In writing code for setting account flags, it would be nice to be able to use the relevant enum:
…but the XDR bits are not documented, so someone wouldn't know those exist without browsing the source. It would be nice if these were documented somehow (not sure how easy that is since the XDR is generated).
The text was updated successfully, but these errors were encountered: