coral-xyz / anchor

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

feat: anchor upgrade with additional solana args #2998

Closed tiamo closed 1 month ago

tiamo commented 1 month ago

Use anchor upgrade with additional solana arguments, for example:

anchor upgrade ... -- --max-sign-attempts 1000 --with-compute-unit-price 1000000
vercel[bot] commented 1 month ago

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

A member of the Team first needs to authorize it.

dhruvja commented 1 month ago

can we have this for other commands like idl init and deploy too?

tiamo commented 1 month ago

can we have this for other commands like idl init and deploy too?

The deploy command already has this, idl init does not need this, as I see

tiamo commented 1 month ago

@acheroncrypto Thanks! It makes sense to use the deploy command for upgrade. The CHANGELOG has been updated.

acheroncrypto commented 1 month ago

@dhruvja idl init has --priority-fee, and you can pass solana-cli args to deploy as @tiamo mentioned.