Skip to content

Commit

Permalink
feat(jsonrpc): switch to spec 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Nov 23, 2023
1 parent 72cd272 commit 66f1d59
Show file tree
Hide file tree
Showing 14 changed files with 1,180 additions and 486 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
**Complete Starknet library in Rust[](https://www.reddit.com/r/rust/comments/12e7tdb/rust_trademark_policy_feedback_form/)**

![starknet-version-v0.12.1](https://img.shields.io/badge/Starknet_Version-v0.12.1-2ea44f?logo=ethereum)
[![jsonrpc-spec-v0.4.0](https://img.shields.io/badge/JSON--RPC-v0.4.0-2ea44f?logo=ethereum)](https://github.com/starkware-libs/starknet-specs/tree/v0.3.0)
[![jsonrpc-spec-v0.5.1](https://img.shields.io/badge/JSON--RPC-v0.5.1-2ea44f?logo=ethereum)](https://github.com/starkware-libs/starknet-specs/tree/v0.5.1)
[![linting-badge](https://github.com/xJonathanLEI/starknet-rs/actions/workflows/lint.yaml/badge.svg?branch=master)](https://github.com/xJonathanLEI/starknet-rs/actions/workflows/lint.yaml)
[![crates-badge](https://img.shields.io/crates/v/starknet.svg)](https://crates.io/crates/starknet)

Expand Down
2 changes: 1 addition & 1 deletion starknet-accounts/tests/single_owner_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn create_sequencer_client() -> SequencerGatewayProvider {

fn create_jsonrpc_client() -> JsonRpcClient<HttpTransport> {
let rpc_url =
std::env::var("STARKNET_RPC").unwrap_or("https://rpc-goerli-1.starknet.rs/rpc/v0.4".into());
std::env::var("STARKNET_RPC").unwrap_or("https://rpc-goerli-1.starknet.rs/rpc/v0.5".into());
JsonRpcClient::new(HttpTransport::new(url::Url::parse(&rpc_url).unwrap()))
}

Expand Down
2 changes: 1 addition & 1 deletion starknet-contract/tests/contract_deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use url::Url;
#[tokio::test]
async fn can_deploy_contract_to_alpha_goerli() {
let rpc_url =
std::env::var("STARKNET_RPC").unwrap_or("https://rpc-goerli-1.starknet.rs/rpc/v0.4".into());
std::env::var("STARKNET_RPC").unwrap_or("https://rpc-goerli-1.starknet.rs/rpc/v0.5".into());
let provider = JsonRpcClient::new(HttpTransport::new(Url::parse(&rpc_url).unwrap()));
let signer = LocalWallet::from(SigningKey::from_secret_scalar(
FieldElement::from_hex_be(
Expand Down
Loading

0 comments on commit 66f1d59

Please sign in to comment.