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({