Skip to content

Commit

Permalink
fix(providers): changing Near chain id to be CAIP-2 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother committed Mar 1, 2024
1 parent 6d760ec commit 0177f20
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SUPPORTED_CHAINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Chain name with associated `chainId` query param to use.
- Avalanche Fuji Testnet (`eip155:43113`)
- zkSync Era (`eip155:324`)
- zkSync Era Testnet (`eip155:280`)
- Near (`near`)
- Near Mainnet(`near:mainnet`)
- Gnosis Chain (`eip155:100`)
- Solana Mainnet (`solana:4sgjmw1sunhzsxgspuhpqldx6wiyjntz`)
- Base (`eip155:8453`)
Expand Down
2 changes: 1 addition & 1 deletion src/env/near.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
HashMap::from([
// Near protocol
(
"near".into(),
"near:mainnet".into(),
(
"https://rpc.mainnet.near.org".into(),
Weight::new(Priority::High).unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion src/env/omnia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
),
// Near
(
"near".into(),
"near:mainnet".into(),
("near".into(), Weight::new(Priority::Normal).unwrap()),
),
// Aurora
Expand Down
2 changes: 1 addition & 1 deletion src/env/pokt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
),
// Near protocol
(
"near".into(),
"near:mainnet".into(),
(
"near-mainnet".into(),
Weight::new(Priority::Normal).unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async fn check_if_rpc_is_responding_correctly_for_near_protocol(
jsonrpc: JSONRPC_VERSION,
};

let (status, rpc_response) = send_jsonrpc_request(client, addr, "near", request).await;
let (status, rpc_response) = send_jsonrpc_request(client, addr, "near:mainnet", request).await;

#[derive(serde::Deserialize)]
struct GenesisConfig {
Expand Down

0 comments on commit 0177f20

Please sign in to comment.