diff --git a/Cargo.lock b/Cargo.lock index 74703b4..a3f017c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2127,8 +2127,8 @@ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "starknet" -version = "0.7.0" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.8.0" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "starknet-accounts", "starknet-contract", @@ -2142,8 +2142,8 @@ dependencies = [ [[package]] name = "starknet-accounts" -version = "0.6.1" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.7.0" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "async-trait", "auto_impl", @@ -2155,8 +2155,8 @@ dependencies = [ [[package]] name = "starknet-contract" -version = "0.6.0" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.7.0" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "serde", "serde_json", @@ -2169,8 +2169,8 @@ dependencies = [ [[package]] name = "starknet-core" -version = "0.7.2" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.8.0" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "base64 0.21.6", "flate2", @@ -2187,7 +2187,7 @@ dependencies = [ [[package]] name = "starknet-crypto" version = "0.6.1" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "crypto-bigint", "hex", @@ -2206,7 +2206,7 @@ dependencies = [ [[package]] name = "starknet-crypto-codegen" version = "0.3.2" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "starknet-curve", "starknet-ff", @@ -2216,7 +2216,7 @@ dependencies = [ [[package]] name = "starknet-curve" version = "0.4.0" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "starknet-ff", ] @@ -2224,7 +2224,7 @@ dependencies = [ [[package]] name = "starknet-ff" version = "0.3.5" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "ark-ff", "bigdecimal", @@ -2236,8 +2236,8 @@ dependencies = [ [[package]] name = "starknet-macros" -version = "0.1.4" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.1.5" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "starknet-core", "syn 2.0.48", @@ -2245,8 +2245,8 @@ dependencies = [ [[package]] name = "starknet-providers" -version = "0.7.0" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.8.0" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "async-trait", "auto_impl", @@ -2264,8 +2264,8 @@ dependencies = [ [[package]] name = "starknet-signers" -version = "0.5.0" -source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=64ebc36#64ebc364c0c346e81b715c5b4a3b32ef37b055c8" +version = "0.6.0" +source = "git+https://github.com/xJonathanLEI/starknet-rs.git?rev=96c6803#96c6803118773d9fd1d74fcf1465763f11a080a1" dependencies = [ "async-trait", "auto_impl", diff --git a/unit_tests/Cargo.toml b/unit_tests/Cargo.toml index d8348cd..fd05b76 100644 --- a/unit_tests/Cargo.toml +++ b/unit_tests/Cargo.toml @@ -12,10 +12,10 @@ serde = "1.0.194" serde_json = "1.0.110" tokio = { version = "1", features = ["full"] } url = "2.5.0" -starknet = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false } -starknet-core = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false } -starknet-providers = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false } -starknet-accounts = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false } +starknet = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false } +starknet-core = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false } +starknet-providers = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false } +starknet-accounts = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false } env_logger = "0.10.1" [dev-dependencies] diff --git a/unit_tests/tests/test_call.rs b/unit_tests/tests/test_call.rs index 832ce3e..c0856c9 100644 --- a/unit_tests/tests/test_call.rs +++ b/unit_tests/tests/test_call.rs @@ -10,8 +10,7 @@ use starknet_core::{ utils::get_selector_from_name, }; use starknet_providers::{ - jsonrpc::HttpTransport, JsonRpcClient, MaybeUnknownErrorCode, Provider, ProviderError, - StarknetErrorWithMessage, + jsonrpc::HttpTransport, JsonRpcClient, Provider, ProviderError, }; /// @@ -39,11 +38,7 @@ async fn fail_non_existing_block(clients: HashMap) { assert_matches!( response_deoxys, - Some(ProviderError::StarknetError(StarknetErrorWithMessage { - message: _, - code: MaybeUnknownErrorCode::Unknown(-32602) - })) + Some(ProviderError::StarknetError(StarknetError::UnexpectedError(_))) //previous error : Unknown(-32602) ) } @@ -101,10 +97,7 @@ async fn fail_invalid_block_range(deoxys: JsonRpcClient) { // for some reason a block range of 0 results in an internal error assert_matches!( response_deoxys, - Some(ProviderError::StarknetError(StarknetErrorWithMessage { - message: _, - code: MaybeUnknownErrorCode::Unknown(-32603) - })) + Some(ProviderError::StarknetError(StarknetError::UnexpectedError(_))) //previous error : Unknown(-32603) ) } diff --git a/unit_tests/tests/test_get_nonce.rs b/unit_tests/tests/test_get_nonce.rs index bd42fa2..11319d2 100644 --- a/unit_tests/tests/test_get_nonce.rs +++ b/unit_tests/tests/test_get_nonce.rs @@ -6,8 +6,7 @@ use std::{assert_matches::assert_matches, collections::HashMap}; use common::*; use starknet_core::types::{BlockId, BlockTag, FieldElement, StarknetError}; use starknet_providers::{ - jsonrpc::HttpTransport, JsonRpcClient, MaybeUnknownErrorCode, Provider, ProviderError, - StarknetErrorWithMessage, + jsonrpc::HttpTransport, JsonRpcClient, Provider, ProviderError, }; /// @@ -47,10 +46,7 @@ async fn fail_non_existing_block(clients: HashMap