Skip to content

Commit

Permalink
feat: testnet05 host url (#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
javadkh2 authored Oct 25, 2024
1 parent ae1ba7d commit 10b879e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const addDefaultNetworks = execInSequence(async () => {
faucetContract: 'n_f17eb6408bb84795b1c871efa678758882a8744a.coin-faucet',
hosts: [
{
url: 'https://api1.testnet05.chainweb.com',
url: 'https://api.testnet05.chainweb.com',
submit: true,
read: true,
confirm: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/tools/src/constants/kadena.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const kadenaConstants: KadenaConstants = {
},
testnet05: {
label: 'Testnet05',
API: env('KADENA_TESTNET05_API', 'api1.testnet05.chainweb.com'),
API: env('KADENA_TESTNET05_API', 'api.testnet05.chainweb.com'),
apiHost: ({ networkId, chainId }) =>
`https://${kadenaConstants.testnet05.API}/chainweb/0.0/${networkId}/chain/${chainId}/pact`,
estatsHost: () => '',
Expand Down
2 changes: 1 addition & 1 deletion packages/libs/client/src/client/utils/tests/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ describe('client utils', () => {
expect(
kadenaHostGenerator({ networkId: 'testnet05', chainId: '14' }),
).toBe(
'https://api1.testnet05.chainweb.com/chainweb/0.0/testnet05/chain/14/pact',
'https://api.testnet05.chainweb.com/chainweb/0.0/testnet05/chain/14/pact',
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/libs/client/src/client/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const kadenaHostGenerator = ({
chainId,
});
case 'testnet05':
return getHostUrl('https://api1.testnet05.chainweb.com')({
return getHostUrl('https://api.testnet05.chainweb.com')({
networkId,
chainId,
});
Expand Down

0 comments on commit 10b879e

Please sign in to comment.