coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

fix missing filename in 'Unable to read keypair file' errors #2932

Closed mikemaccana closed 2 months ago

mikemaccana commented 2 months ago

Fixes #2884

vercel[bot] commented 2 months ago

@mikemaccana is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

mikemaccana commented 2 months ago

Thanks. I did try and make get_keypair() take a path instead originally but read_keypair_file() really wants the trait AsRef<std::path::Path> and WalletPath doesn't implement it. I ended up converting to a string in this most recent update, is there a better way?

read_keypair_file in your editor and fix all of them

Missed that one (originally I skipped it when playing with WalletPath as it wants a string). Got it now.

mikemaccana commented 2 months ago

cargo clippy bits fixed too.