Skip to content

Commit

Permalink
Use fixed counter address in snapshots (#12)
Browse files Browse the repository at this point in the history
This prevents new key pairs from being generated and avoids having lots of unnecessary address changes between snapshots.
  • Loading branch information
lorisleiva authored Mar 8, 2024
1 parent 097d08a commit e254142
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/soft-elephants-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"create-solana-program": patch
---

Use fixed counter address in snapshots

This prevents new keypairs from being generated and avoids having lots of unnecessary address changes between snapshots.
3 changes: 2 additions & 1 deletion scripts/utils.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const COUNTER_ADDRESS = 'CounterProgram111111111111111111111111111111';
export const CLIENTS = ['js', 'rust'];
export const PROJECTS = {
'counter-shank': ['counter', '--shank'],
'counter-shank': ['counter', '--shank', '--address', COUNTER_ADDRESS],
};

export async function executeStep(title, fn) {
Expand Down

0 comments on commit e254142

Please sign in to comment.