|
@@ -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.
|