瀏覽代碼

node: change default ethereum testnet to sepolia from holesky (#4484)

* Update vaa.ChainIDEthereum testnet to use Sepolia instead of Goerli

* holesky, not goerli

* don't disable vaa.ChainIDSepolia

* Update chain_config.go

* Update tests
Adam 2 月之前
父節點
當前提交
5b0c39fdac
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      node/pkg/watchers/evm/chain_config.go
  2. 2 2
      node/pkg/watchers/evm/chain_config_test.go

+ 2 - 2
node/pkg/watchers/evm/chain_config.go

@@ -108,8 +108,8 @@ var (
 	// NOTE: Only add a chain here if the watcher should allow it in Testnet.
 	// NOTE: If you change this data, be sure and run the tests described at the top of this file!
 	testnetChainConfig = EnvMap{
-		// For Ethereum testnet we actually use Holeksy since Goerli is deprecated.
-		vaa.ChainIDEthereum: {Finalized: true, Safe: true, EvmChainID: 17000, PublicRPC: "https://1rpc.io/holesky", ContractAddr: "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"},
+		// As of 2025 September we use Sepolia as the default Ethereum testnet, given that Holesky is being deprecated.
+		vaa.ChainIDEthereum: {Finalized: true, Safe: true, EvmChainID: 11155111, PublicRPC: "https://ethereum-sepolia-rpc.publicnode.com", ContractAddr: "0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"},
 		vaa.ChainIDBSC:      {Finalized: true, Safe: true, EvmChainID: 97, PublicRPC: "https://bsc-testnet-rpc.publicnode.com", ContractAddr: "0x68605AD7b15c732a30b1BbC62BE8F2A509D74b4D"},
 
 		// Polygon supports polling for finalized but not safe: https://forum.polygon.technology/t/optimizing-decentralized-apps-ux-with-milestones-a-significantly-accelerated-finality-solution/13154

+ 2 - 2
node/pkg/watchers/evm/chain_config_test.go

@@ -34,7 +34,7 @@ func TestGetEvmChainID(t *testing.T) {
 		{env: common.MainNet, input: vaa.ChainIDBSC, output: 56},
 		{env: common.TestNet, input: vaa.ChainIDUnset, err: ErrNotFound},
 		{env: common.TestNet, input: vaa.ChainIDSepolia, output: 11155111},
-		{env: common.TestNet, input: vaa.ChainIDEthereum, output: 17000},
+		{env: common.TestNet, input: vaa.ChainIDEthereum, output: 11155111},
 		{env: common.GoTest, input: vaa.ChainIDEthereum, err: ErrInvalidEnv},
 	}
 
@@ -126,7 +126,7 @@ func TestGetContractAddr(t *testing.T) {
 		{env: common.MainNet, input: vaa.ChainIDBSC, output: "0x98f3c9e6E3fAce36bAAd05FE09d375Ef1464288B"},
 		{env: common.TestNet, input: vaa.ChainIDUnset, err: ErrNotFound},
 		{env: common.TestNet, input: vaa.ChainIDSepolia, output: "0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"},
-		{env: common.TestNet, input: vaa.ChainIDEthereum, output: "0xa10f2eF61dE1f19f586ab8B6F2EbA89bACE63F7a"},
+		{env: common.TestNet, input: vaa.ChainIDEthereum, output: "0x4a8bc80Ed5a4067f1CCf107057b8270E0cC11A78"},
 		{env: common.GoTest, input: vaa.ChainIDEthereum, err: ErrInvalidEnv},
 	}