Răsfoiți Sursa

docs, examples: Update cli version number and adjust ring size

armaniferrante 4 ani în urmă
părinte
comite
14edcb038d

+ 1 - 1
docs/src/getting-started/installation.md

@@ -34,7 +34,7 @@ npm install -g mocha
 For now, we can use Cargo to install the CLI.
 For now, we can use Cargo to install the CLI.
 
 
 ```bash
 ```bash
-cargo install --git https://github.com/project-serum/anchor --tag v0.4.1 anchor-cli --locked
+cargo install --git https://github.com/project-serum/anchor --tag v0.4.4 anchor-cli --locked
 ```
 ```
 
 
 On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,
 On Linux systems you may need to install additional dependencies if `cargo install` fails. On Ubuntu,

+ 1 - 1
examples/chat/programs/chat/src/lib.rs

@@ -84,7 +84,7 @@ impl ChatRoom {
         self.head += 1;
         self.head += 1;
     }
     }
     fn index_of(counter: u64) -> usize {
     fn index_of(counter: u64) -> usize {
-        std::convert::TryInto::try_into(counter % 10000).unwrap()
+        std::convert::TryInto::try_into(counter % 33607).unwrap()
     }
     }
 }
 }