update frozen_abi dev workflow in docs (#31705)

This commit is contained in:
Jeff Biseda 2023-05-18 16:23:59 -07:00 committed by GitHub
parent 08bb6f7070
commit 97293fe506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,11 @@ To know the digest for new ABI items, developers can add `frozen_abi` with a
random digest value and run the unit tests and replace it with the correct
digest from the assertion test error message.
Run unit tests using the following command to generate digest values:
```
SOLANA_ABI_DUMP_DIR=. cargo +nightly test abi
```
In general, once we add `frozen_abi` and its change is published in the stable
release channel, its digest should never change. If such a change is needed, we
should opt for defining a new `struct` like `FooV1`. And special release flow