Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug : Fix connecting to Teloscan to metamask for the first time uses the old rpc #909

Open
wants to merge 13 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/config/chains/telos-evm-testnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const W_TOKEN = new TokenClass({

const RPC_ENDPOINT = {
protocol: 'https',
host: 'testnet.telos.net',
host: 'rpc.testnet.telos.net',
port: 443,
path: '/evm',
};
Expand All @@ -59,7 +59,7 @@ const EXPLORER_URL = 'https://testnet.teloscan.io';
const ECOSYSTEM_URL = 'https://www.telos.net/ecosystem';
const BRIDGE_URL = 'https://telos-bridge-testnet.netlify.app/bridge';

const NETWORK_EVM_ENDPOINT = 'https://testnet.telos.net';
const NETWORK_EVM_ENDPOINT = 'https://rpc.testnet.telos.net';
const INDEXER_ENDPOINT = 'https://api.testnet.teloscan.io';
const CONTRACTS_BUCKET = 'https://verified-evm-contracts-testnet.s3.amazonaws.com';

Expand All @@ -69,7 +69,7 @@ declare const fathom: { trackEvent: (eventName: string) => void };
const NETWORK_CHAIN_ID = '1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f';
const NETWORK_PROTOCOL = 'https';
const NETWORK_PORT = 443;
const NETWORK_HOST = 'testnet.telos.net';
const NETWORK_HOST = 'rpc.testnet.telos.net';


export default class TelosEVMTestnet extends EVMChainSettings {
Expand Down
6 changes: 3 additions & 3 deletions src/config/chains/telos-evm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const W_TOKEN = new TokenClass({

const RPC_ENDPOINT = {
protocol: 'https',
host: 'mainnet.telos.net',
host: 'rpc.telos.net',
port: 443,
path: '/evm',
};
Expand All @@ -58,7 +58,7 @@ const WEI_PRECISION = 18;
const EXPLORER_URL = 'https://teloscan.io';
const ECOSYSTEM_URL = 'https://www.telos.net/ecosystem';
const BRIDGE_URL = 'https://bridge.telos.net/bridge';
const NETWORK_EVM_ENDPOINT = 'https://mainnet.telos.net';
const NETWORK_EVM_ENDPOINT = 'https://rpc.telos.net';
const INDEXER_ENDPOINT = 'https://api.teloscan.io';
const CONTRACTS_BUCKET = 'https://verified-evm-contracts.s3.amazonaws.com';

Expand All @@ -68,7 +68,7 @@ declare const fathom: { trackEvent: (eventName: string) => void };
const NETWORK_CHAIN_ID = '4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11';
const NETWORK_PROTOCOL = 'https';
const NETWORK_PORT = 443;
const NETWORK_HOST = 'mainnet.telos.net';
const NETWORK_HOST = 'rpc.telos.net';

export default class TelosEVM extends EVMChainSettings {
nativeSupport: TelosEvmApi;
Expand Down
Loading