From 4ce13a63facc1730274c26bb65369a85d029e91c Mon Sep 17 00:00:00 2001 From: aalu1418 <50029043+aalu1418@users.noreply.github.com> Date: Fri, 5 Jul 2024 14:40:26 -0600 Subject: [PATCH] fix localnet deployment keys --- .../localnet/{ocr2-keypair.json => ocr_2-keypair.json} | 0 .../localnet/{ocr2-keypair.pub => ocr_2-keypair.pub} | 0 contracts/examples/hello-world/tests/hello-world.ts | 10 ++++++---- 3 files changed, 6 insertions(+), 4 deletions(-) rename contracts/artifacts/localnet/{ocr2-keypair.json => ocr_2-keypair.json} (100%) rename contracts/artifacts/localnet/{ocr2-keypair.pub => ocr_2-keypair.pub} (100%) diff --git a/contracts/artifacts/localnet/ocr2-keypair.json b/contracts/artifacts/localnet/ocr_2-keypair.json similarity index 100% rename from contracts/artifacts/localnet/ocr2-keypair.json rename to contracts/artifacts/localnet/ocr_2-keypair.json diff --git a/contracts/artifacts/localnet/ocr2-keypair.pub b/contracts/artifacts/localnet/ocr_2-keypair.pub similarity index 100% rename from contracts/artifacts/localnet/ocr2-keypair.pub rename to contracts/artifacts/localnet/ocr_2-keypair.pub diff --git a/contracts/examples/hello-world/tests/hello-world.ts b/contracts/examples/hello-world/tests/hello-world.ts index 414782ac1..1be42ed09 100644 --- a/contracts/examples/hello-world/tests/hello-world.ts +++ b/contracts/examples/hello-world/tests/hello-world.ts @@ -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 @@ -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({