Skip to content

Commit

Permalink
Merge pull request #176 from NethermindEth/default_2.3
Browse files Browse the repository at this point in the history
make 2.3.0 as default cairo version
  • Loading branch information
rjnrohit authored Oct 25, 2023
2 parents a2bc627 + 5a997c5 commit 16e45cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/src/utils/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ pub const DEFAULT_CAIRO_DIR: &str = concat!(
env!("CARGO_MANIFEST_DIR"),
"/",
"cairo_compilers/",
"v2.2.0"
"v2.3.0"
);
pub const CAIRO_COMPILERS_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/", "cairo_compilers/");
#[allow(dead_code)]
pub const TEMP_DIR: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/", "temp/");

pub const DEFAULT_CAIRO_VERSION: &str = "v2.2.0";
pub const DEFAULT_CAIRO_VERSION: &str = "v2.3.0";

pub const DURATION_TO_PURGE: u64 = 60 * 5; // 5 minutes

Expand Down
4 changes: 2 additions & 2 deletions plugin/src/features/CairoVersion/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ const CairoVersion: React.FC = () => {
await fetchCairoVersions();

if (getVersions.length > 0) {
setCairoVersion(getVersions[0])
setCairoVersion(getVersions[getVersions.length - 1])
}
}, 10000);
}, [remixClient]);

useEffect(() => {
if (getVersions.length > 0) {
setCairoVersion(getVersions[0])
setCairoVersion(getVersions[getVersions.length - 1])
}
}, [remixClient, getVersions]);

Expand Down

0 comments on commit 16e45cb

Please sign in to comment.