mirror of
https://github.com/zhigang1992/connect.git
synced 2026-04-23 20:51:09 +08:00
fix: remaining broken sidecar urls, fixes #615
This commit is contained in:
@@ -66,7 +66,7 @@ export class WalletSigner {
|
||||
|
||||
getNetwork() {
|
||||
const network = new StacksTestnet();
|
||||
network.coreApiUrl = 'https://sidecar.staging.blockstack.xyz';
|
||||
network.coreApiUrl = 'https://stacks-node-api.blockstack.org';
|
||||
return network;
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ export class RPCClient {
|
||||
}
|
||||
|
||||
async fetchAddressTransactions({ address }: { address: string }) {
|
||||
const url = `${this.url}/sidecar/v1/address/${address}/transactions`;
|
||||
const url = `${this.url}/extended/v1/address/${address}/transactions`;
|
||||
const res = await fetch(url);
|
||||
const data: TransactionResults = await res.json();
|
||||
return data.results;
|
||||
|
||||
@@ -38,7 +38,7 @@ export const useFaucet = () => {
|
||||
}, 10000);
|
||||
};
|
||||
try {
|
||||
const url = `${client.url}/sidecar/v1/debug/faucet?address=${stxAddress}`;
|
||||
const url = `${client.url}/extended/v1/debug/faucet?address=${stxAddress}`;
|
||||
const res = await fetch(url, {
|
||||
method: 'POST',
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@ export const getRPCClient = () => {
|
||||
const { origin } = location;
|
||||
const url = origin.includes('localhost')
|
||||
? 'http://localhost:3999'
|
||||
: 'https://sidecar.staging.blockstack.xyz';
|
||||
: 'https://stacks-node-api.blockstack.org';
|
||||
return new RPCClient(url);
|
||||
};
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export const Faucet = ({ address: _address = '' }: { address: string }) => {
|
||||
if (origin.includes('localhost')) {
|
||||
return 'http://localhost:3999';
|
||||
}
|
||||
return 'https://sidecar.staging.blockstack.xyz';
|
||||
return 'https://stacks-node-api.blockstack.org';
|
||||
};
|
||||
|
||||
const waitForBalance = async (currentBalance: number, attempts: number) => {
|
||||
@@ -53,7 +53,7 @@ export const Faucet = ({ address: _address = '' }: { address: string }) => {
|
||||
setTX('');
|
||||
|
||||
try {
|
||||
const url = `${getServerURL()}/sidecar/v1/debug/faucet?address=${address}`;
|
||||
const url = `${getServerURL()}/extended/v1/debug/faucet?address=${address}`;
|
||||
const res = await fetch(url, {
|
||||
method: 'POST',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user