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 fd562ff
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions contracts/Anchor.toml
Original file line number Diff line number Diff line change
@@ -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 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ" # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
2 changes: 1 addition & 1 deletion contracts/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "ocr2"
name = "ocr_2"
version = "1.0.1"
description = "Created with Anchor"
edition = "2021"

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

[features]
no-entrypoint = []
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct NewOracle {
}

#[program]
pub mod ocr2 {
pub mod ocr_2 {
use super::*;
pub fn initialize(ctx: Context<Initialize>, min_answer: i128, max_answer: i128) -> Result<()> {
let mut state = ctx.accounts.state.load_init()?;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions contracts/tests/ocr2.spec.ts
Original file line number Diff line number Diff line change
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 fd562ff

Please sign in to comment.