Skip to content

Commit

Permalink
fix localnet deployment keys
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Jul 5, 2024
1 parent ac480c1 commit 4ce13a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/examples/hello-world/tests/hello-world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ describe("hello-world", () => {
feed,
header + (liveLength + historicalLength) * transmissionSize
),
]).rpc();
}).rpc({ commitment: "confirmed" });
console.log("deployed store")

await storeProgram.methods.setWriter(owner.publicKey).accounts({
feed: feed.publicKey,
owner: owner.publicKey,
authority: owner.publicKey,
}).rpc();
}).rpc({ commitment: "confirmed" });
console.log("set writer on store")

const scale = new BN(10).pow(new BN(decimals));
// Scale answer to enough decimals
Expand All @@ -59,8 +61,8 @@ describe("hello-world", () => {
store: store.publicKey,
feed: feed.publicKey,
authority: owner.publicKey,
}).rpc();
await provider.connection.confirmTransaction(tx);
}).rpc({ commitment: "confirmed" });
console.log("value written to store")

// Add your test here.
tx = await program.methods.execute().accounts({
Expand Down

0 comments on commit 4ce13a6

Please sign in to comment.