Closed acheroncrypto closed 1 month ago
find_path function used in non-Anchor external type resolution can potentially panic if the file we're looking for doesn't exist in any of the ancestors.
find_path
This can happen in rare cases such as the recursive external type resolution described in https://github.com/coral-xyz/anchor/pull/2946.
Rewrite the find_path function without a potential panic.
@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
Problem
find_path
function used in non-Anchor external type resolution can potentially panic if the file we're looking for doesn't exist in any of the ancestors.This can happen in rare cases such as the recursive external type resolution described in https://github.com/coral-xyz/anchor/pull/2946.
Summary of changes
Rewrite the
find_path
function without a potential panic.