Skip to content

Commit

Permalink
Support starknet 0.13.1.1 (#1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored Mar 28, 2024
1 parent 50d2dbe commit 0ef1e6a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions core/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"reflect"
"testing"

"github.com/Masterminds/semver/v3"
"github.com/NethermindEth/juno/clients/feeder"
"github.com/NethermindEth/juno/core"
"github.com/NethermindEth/juno/core/felt"
Expand All @@ -18,6 +19,14 @@ import (
"github.com/stretchr/testify/require"
)

func TestParseBlockVersion_version13_1_1(t *testing.T) {
ver, err := core.ParseBlockVersion("0.13.1.1")
require.NoError(t, err)

customSemverGreater := ver.GreaterThan(semver.MustParse("0.13.1"))
assert.False(t, customSemverGreater)
}

func TestTransactionEncoding(t *testing.T) {
tests := []struct {
name string
Expand Down
2 changes: 1 addition & 1 deletion starknet/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
serde = "1.0.171"
serde_json = { version = "1.0.96", features = ["raw_value"] }
cairo-lang-starknet-classes = "=2.6.0-rc.1"
cairo-lang-starknet-classes = "=2.6.0"

[lib]
crate-type = ["staticlib"]
4 changes: 2 additions & 2 deletions vm/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition = "2021"
[dependencies]
serde = "1.0.171"
serde_json = { version = "1.0.96", features = ["raw_value"] }
blockifier = "=0.5.0-rc.3"
starknet_api = "=0.8.0"
blockifier = "=0.6.0-rc.0"
starknet_api = "=0.10.0"
cairo-vm = "=0.9.2"
indexmap = "2.1.0"
cached = "0.46.1"
Expand Down
1 change: 1 addition & 0 deletions vm/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ lazy_static! {
static ref CONSTANTS: HashMap<String, VersionedConstants> = {
let mut m = HashMap::new();
m.insert("0.13.0".to_string(), serde_json::from_slice(include_bytes!("../versioned_constants_13_0.json")).unwrap());

m
};
}
Expand Down

0 comments on commit 0ef1e6a

Please sign in to comment.