Compare commits

...

2 Commits

Author SHA1 Message Date
Sundeep Charan Ramkumar 5fad50bba7
Merge e4a4d80be1 into 8e8df76eda 2024-04-18 16:03:04 +02:00
Syed Aabis Akhtar 8e8df76eda
docs: Fix GitHub example link of `declare_program!` in release notes (#2910)
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2024-04-18 15:20:53 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ declare_program!(program_name);
`program_name` is based on the file name of the IDL in `idls` directory, e.g. `idls/program_name.json` is required to exist in order for the above example to work.
This works for both on-chain (CPI) and off-chain (RPC) usage, allowing program interactions without creating a [dependency hell](https://en.wikipedia.org/wiki/Dependency_hell). Check out [this](https://github.com/coral-xyz/anchor/blob/0.30.0/tests/declare-program/programs/declare-program/src/lib.rs) example for on-chain CPI usage.
This works for both on-chain (CPI) and off-chain (RPC) usage, allowing program interactions without creating a [dependency hell](https://en.wikipedia.org/wiki/Dependency_hell). Check out [this](https://github.com/coral-xyz/anchor/blob/v0.30.0/tests/declare-program/programs/declare-program/src/lib.rs) example for on-chain CPI usage.
For more information, see the macro's [documentation](https://docs.rs/anchor-lang/0.30.0/anchor_lang/macro.declare_program.html).