diff --git a/sdk/tests/network-client.test.ts b/sdk/tests/network-client.test.ts index 374343940..c5a8730fd 100644 --- a/sdk/tests/network-client.test.ts +++ b/sdk/tests/network-client.test.ts @@ -70,7 +70,10 @@ describe('NodeConnection', () => { }); it('should throw an error if the request fails', async () => { - expect(await connection.getBlockRange(999999999, 1000000000)).deep.equal([]); + await expectThrows( + () => connection.getBlockRange(999999999, 1000000000), + "Error fetching blocks between 999999999 and 1000000000.", + ); }); }); @@ -103,7 +106,7 @@ describe('NodeConnection', () => { expect(windowFetchSpy.args).deep.equal([ [ - "https://api.explorer.provable.com/v1", + "https://api.explorer.provable.com/v1/%%NETWORK%%/latest/block", { "headers": { // @TODO: Run the Jest tests on the compiled Rollup code, diff --git a/wasm/src/types/networks/mainnet.rs b/wasm/src/types/networks/mainnet.rs index 615830b79..ffd89a69b 100644 --- a/wasm/src/types/networks/mainnet.rs +++ b/wasm/src/types/networks/mainnet.rs @@ -20,4 +20,4 @@ pub use snarkvm_console::network::MainnetV0 as CurrentNetwork; pub use snarkvm_parameters::mainnet as parameters; -pub const BASE_URL: &'static str = "https://parameters.provable.com/mainnet/"; +pub const BASE_URL: &'static str = "https://parameters.aleo.org/mainnet/"; diff --git a/wasm/src/types/networks/testnet.rs b/wasm/src/types/networks/testnet.rs index 88d5a92b5..9085dc799 100644 --- a/wasm/src/types/networks/testnet.rs +++ b/wasm/src/types/networks/testnet.rs @@ -20,4 +20,4 @@ pub use snarkvm_console::network::TestnetV0 as CurrentNetwork; pub use snarkvm_parameters::testnet as parameters; -pub const BASE_URL: &'static str = "https://parameters.provable.com/testnet/"; +pub const BASE_URL: &'static str = "https://parameters.aleo.org/testnet/";