From 572461c5d72c61ad082401fedb749fc9246a374b Mon Sep 17 00:00:00 2001 From: Carl Cortright Date: Sun, 28 Aug 2022 23:48:11 -0400 Subject: [PATCH 1/3] remove bad fields --- response.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/response.go b/response.go index e28007e..f96af0d 100644 --- a/response.go +++ b/response.go @@ -124,8 +124,6 @@ type ContractSource struct { ABI string `json:"ABI"` ContractName string `json:"ContractName"` CompilerVersion string `json:"CompilerVersion"` - OptimizationUsed int `json:"OptimizationUsed,string"` - Runs int `json:"Runs,string"` ConstructorArguments string `json:"ConstructorArguments"` EVMVersion string `json:"EVMVersion"` Library string `json:"Library"` @@ -174,4 +172,3 @@ type Log struct { LogIndex string `json:"logIndex"` Removed bool `json:"removed"` } - From d933443b2f45a569abcd968898957ed079219ee7 Mon Sep 17 00:00:00 2001 From: Carl Cortright Date: Sun, 28 Aug 2022 23:50:42 -0400 Subject: [PATCH 2/3] remove bad fields --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3e16f01..92260ca 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/nanmu42/etherscan-api +module github.com/coherent-api/etherscan-api go 1.13 From 6ad16526e5638f3568e92d45e2be0a680527285c Mon Sep 17 00:00:00 2001 From: Carl Cortright Date: Mon, 29 Aug 2022 17:43:39 -0400 Subject: [PATCH 3/3] add optimism --- network.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network.go b/network.go index 32372ca..a102581 100644 --- a/network.go +++ b/network.go @@ -22,6 +22,8 @@ const ( Goerli Network = "api-goerli" // Tobalaba Testnet Tobalaba Network = "api-tobalaba" + + Optimism Network = "api-optimistic" ) // Network is ethereum network type (mainnet, ropsten, etc)