Skip to content

Commit e254142

Browse files
authored
Use fixed counter address in snapshots (#12)
This prevents new key pairs from being generated and avoids having lots of unnecessary address changes between snapshots.
1 parent 097d08a commit e254142

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/soft-elephants-compete.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-solana-program": patch
3+
---
4+
5+
Use fixed counter address in snapshots
6+
7+
This prevents new keypairs from being generated and avoids having lots of unnecessary address changes between snapshots.

scripts/utils.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
export const COUNTER_ADDRESS = 'CounterProgram111111111111111111111111111111';
12
export const CLIENTS = ['js', 'rust'];
23
export const PROJECTS = {
3-
'counter-shank': ['counter', '--shank'],
4+
'counter-shank': ['counter', '--shank', '--address', COUNTER_ADDRESS],
45
};
56

67
export async function executeStep(title, fn) {

0 commit comments

Comments
 (0)