Skip to content

Commit ef55bb5

Browse files
committed
Changed inner_test_validate_owner to return Ok(())
Previously in the happy case `result` was returned, but that may be a different error unrelated to signers which will then get propagated by `inner_test_validate_owner`.
1 parent 8a508d9 commit ef55bb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p-token/src/entrypoint-runtime-verification.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,9 @@ fn inner_test_validate_owner(
750750
if signers_count < multisig.m as usize {
751751
assert_eq!(result, Err(ProgramError::MissingRequiredSignature));
752752
return result;
753-
} else {
754-
return result;
755753
}
754+
755+
Ok(())
756756
}
757757
}
758758
// Line 133-135: Non-multisig case - check if owner_account_info.is_signer()

0 commit comments

Comments
 (0)