Skip to content

Commit

Permalink
test: switch to pathfinder for integration tests (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI authored Dec 15, 2023
1 parent 63538a3 commit 082f556
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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 @@ -26,7 +26,7 @@ fn create_sequencer_client() -> SequencerGatewayProvider {

fn create_jsonrpc_client() -> JsonRpcClient<HttpTransport> {
let rpc_url = std::env::var("STARKNET_RPC")
.unwrap_or("https://juno.rpc.goerli.starknet.rs/rpc/v0_6".into());
.unwrap_or("https://pathfinder.rpc.goerli.starknet.rs/rpc/v0_6".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://juno.rpc.goerli.starknet.rs/rpc/v0_6".into());
.unwrap_or("https://pathfinder.rpc.goerli.starknet.rs/rpc/v0_6".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
2 changes: 1 addition & 1 deletion starknet-providers/tests/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use url::Url;

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

Expand Down

0 comments on commit 082f556

Please sign in to comment.