Skip to content

Commit

Permalink
Fix anchor ocr2 case naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Mar 14, 2024
1 parent 91ef04e commit 499d3b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/Anchor.toml
@@ -1,4 +1,4 @@
anchor_version = "0.25.0"
anchor_version = "0.29.0"

[registry]
url = "https://anchor.projectserum.com"
Expand All @@ -21,6 +21,6 @@ test = "yarn run test"
# TODO: add pubkeys

[programs.localnet]
ocr2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ"
ocr_2 = { address = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ", idl = "target/idl/ocr2.json" } # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
2 changes: 1 addition & 1 deletion contracts/programs/ocr2/Cargo.toml
Expand Up @@ -6,7 +6,7 @@ edition = "2021"

[lib]
crate-type = ["cdylib", "lib"]
name = "ocr2"
name = "ocr_2"

[features]
no-entrypoint = []
Expand Down
4 changes: 2 additions & 2 deletions contracts/tests/ocr2.spec.ts
Expand Up @@ -54,9 +54,9 @@ class Round extends Assignable {}
const header = 8 + 192; // account discriminator + header
const transmissionSize = 48;

describe("ocr2", async () => {
describe("ocr2", () => {
// Configure the client to use the local cluster.
const provider = anchor.AnchorProvider.env();
const provider = anchor.AnchorProvider.local();
anchor.setProvider(provider);

// Generate a new wallet keypair and airdrop SOL
Expand Down

0 comments on commit 499d3b3

Please sign in to comment.