lang: Fix incorrectly checking the first init constraint (#2483)
This commit is contained in:
parent
ac86e15756
commit
d1ddf00293
|
@ -162,7 +162,7 @@ fn constraints_cross_checks(fields: &[AccountField]) -> ParseResult<()> {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
match kind {
|
match &field.constraints.init.as_ref().unwrap().kind {
|
||||||
// This doesn't catch cases like account.key() or account.key.
|
// This doesn't catch cases like account.key() or account.key.
|
||||||
// My guess is that doesn't happen often and we can revisit
|
// My guess is that doesn't happen often and we can revisit
|
||||||
// this if I'm wrong.
|
// this if I'm wrong.
|
||||||
|
|
Loading…
Reference in New Issue