Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: ident names with IDs generates code i_ds #194

Open
leighmcculloch opened this issue Mar 13, 2024 · 0 comments
Open

Rust: ident names with IDs generates code i_ds #194

leighmcculloch opened this issue Mar 13, 2024 · 0 comments
Labels

Comments

@leighmcculloch
Copy link
Member

What version are you using?

6b73afa

What did you do?

struct AccountEntryExtensionV2
{
    uint32 numSponsored;
    uint32 numSponsoring;
    SponsorshipDescriptor signerSponsoringIDs<MAX_SIGNERS>;

Ref: https://github.com/stellar/stellar-xdr/blob/b96148cd4acc372cc9af17b909ffe4b12c43ecb6/Stellar-ledger-entries.x#L157

What did you expect to see?

pub struct AccountEntryExtensionV2 {
    pub num_sponsored: u32,
    pub num_sponsoring: u32,
    pub signer_sponsoring_ids: VecM<SponsorshipDescriptor, 20>,

What did you see instead?

Field named:

pub struct AccountEntryExtensionV2 {
    pub num_sponsored: u32,
    pub num_sponsoring: u32,
    pub signer_sponsoring_i_ds: VecM<SponsorshipDescriptor, 20>,

Ref: https://github.com/stellar/rs-stellar-xdr/blob/3da6ebcbd8afa01d5c94dbc7f0475f4c00089420/src/curr/generated.rs#L11956

Related Issues

Identified at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant