print composite field type if the parser cannot resolve it (#1506)
This commit is contained in:
parent
b5ea2a4201
commit
69a2d44513
|
@ -513,9 +513,9 @@ fn idl_accounts(
|
||||||
.iter()
|
.iter()
|
||||||
.map(|acc: &AccountField| match acc {
|
.map(|acc: &AccountField| match acc {
|
||||||
AccountField::CompositeField(comp_f) => {
|
AccountField::CompositeField(comp_f) => {
|
||||||
let accs_strct = global_accs
|
let accs_strct = global_accs.get(&comp_f.symbol).unwrap_or_else(|| {
|
||||||
.get(&comp_f.symbol)
|
panic!("Could not resolve Accounts symbol {}", comp_f.symbol)
|
||||||
.expect("Could not resolve Accounts symbol");
|
});
|
||||||
let accounts = idl_accounts(ctx, accs_strct, global_accs, seeds_feature);
|
let accounts = idl_accounts(ctx, accs_strct, global_accs, seeds_feature);
|
||||||
IdlAccountItem::IdlAccounts(IdlAccounts {
|
IdlAccountItem::IdlAccounts(IdlAccounts {
|
||||||
name: comp_f.ident.to_string().to_mixed_case(),
|
name: comp_f.ident.to_string().to_mixed_case(),
|
||||||
|
|
Loading…
Reference in New Issue