diff --git a/examples/account_test.go b/examples/account_test.go index 1387f7b..b414325 100644 --- a/examples/account_test.go +++ b/examples/account_test.go @@ -12,7 +12,7 @@ func TestGetAccountBalance(t *testing.T) { if err != nil { fmt.Println("new mock client fail", "err", err) } - accountItem := []string{"0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97"} + accountItem := []string{"0xD79053a14BC465d9C1434d4A4fAbdeA7b6a2A94b"} symbol := []string{"ETH"} contractAddress := []string{"0x00"} protocolType := []string{""} diff --git a/examples/mock.go b/examples/mock.go index d021f92..811ca87 100644 --- a/examples/mock.go +++ b/examples/mock.go @@ -9,13 +9,18 @@ import ( ) var ( - EtherscanBaseUrl = "https://api.etherscan.io/api?" - EtherscanApiKey = "HZEZGEPJJDA633N421AYW9NE8JFNZZC7JT" - EtherscanTimeout = time.Second * 20 + //EtherscanBaseUrl = "https://api.etherscan.io/api?" + //EtherscanApiKey = "HZEZGEPJJDA633N421AYW9NE8JFNZZC7JT" + //EtherscanTimeout = time.Second * 20 OklinkBaseUrl = "https://www.oklink.com" OklinkApiKey = "5181d535-b68f-41cf-bbc6-25905e46b6a6" OkTimeout = time.Second * 20 + + // test success + EtherscanBaseUrl = "https://api-holesky.etherscan.io/api?" + EtherscanApiKey = "HZEZGEPJJDA633N421AYW9NE8JFNZZC7JT" + EtherscanTimeout = time.Second * 20 ) func NewMockClient() (*oklink.ChainExplorerAdaptor, *etherscan.ChainExplorerAdaptor, error) {