Skip to content

Commit c00039f

Browse files
committed
update readme
1 parent 1c4c95c commit c00039f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/anchor-gen/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
Generates a crate for cross-program invocations to an Anchor program from a JSON IDL.
44

5+
Now updated for Anchor 0.31.1!
6+
57
## Usage
68

79
In a new crate, write:
810

911
```skip
1012
anchor_gen::generate_cpi_crate!("../../examples/govern-cpi/idl.json");
11-
12-
declare_id!("GjphYQcbP1m3FuDyCTUJf2mUMxKPE3j6feWU1rxvC7Ps");
1313
```
1414

1515
This will generate a fully functional Rust CPI client for your IDL.

crates/anchor-gen/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! Generates a crate for cross-program invocations to an Anchor program from a JSON IDL.
22
//!
3+
//! Now updated for Anchor 0.31.1!
4+
//!
35
//! # Usage
46
//!
57
//! In a new crate, write:
68
//!
79
//! ```skip
810
//! anchor_gen::generate_cpi_crate!("../../examples/govern-cpi/idl.json");
9-
//!
10-
//! declare_id!("GjphYQcbP1m3FuDyCTUJf2mUMxKPE3j6feWU1rxvC7Ps");
1111
//! ```
1212
//!
1313
//! This will generate a fully functional Rust CPI client for your IDL.

0 commit comments

Comments
 (0)