Skip to content

Commit

Permalink
lang: Fix idl for Signer type (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
armaniferrante authored Sep 17, 2021
1 parent b99f017 commit bbf79e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lang/syn/src/idl/file.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::idl::*;
use crate::parser::context::CrateContext;
use crate::parser::{self, accounts, error, program};
use crate::Ty;
use crate::{AccountField, AccountsStruct, StateIx};
use anyhow::Result;
use heck::MixedCase;
Expand Down Expand Up @@ -458,7 +459,10 @@ fn idl_accounts(
AccountField::Field(acc) => IdlAccountItem::IdlAccount(IdlAccount {
name: acc.ident.to_string().to_mixed_case(),
is_mut: acc.constraints.is_mutable(),
is_signer: acc.constraints.is_signer(),
is_signer: match acc.ty {
Ty::Signer => true,
_ => acc.constraints.is_signer(),
},
}),
})
.collect::<Vec<_>>()
Expand Down

0 comments on commit bbf79e7

Please sign in to comment.