nit: consistent name (#22857)

This commit is contained in:
Jack May
2022-01-31 23:46:04 -08:00
committed by GitHub
parent 9f1f7aff2b
commit 551c24da57
5 changed files with 11 additions and 7 deletions

View File

@ -28,7 +28,7 @@ pub fn process_instruction(
input: &[u8],
invoke_context: &mut InvokeContext,
) -> Result<(), InstructionError> {
if invoke_context.invoke_depth() != 1 {
if invoke_context.get_invoke_depth() != 1 {
// Not supported as an inner instruction
return Err(InstructionError::UnsupportedProgramId);
}