diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-28 17:49:53 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-28 17:49:53 +0800 |
commit | 05f74077fb1bc23937f3b25fd4e826dcf5789212 (patch) | |
tree | e1fca4dd2efc253b00e2d39c3c554de87f8b78f9 /rpc/api/utils.go | |
parent | 2e4fdce74334206dd4341028594bcef140d00b92 (diff) | |
parent | 4d005a2c1d2929dc770acd3a2bfed59495c70557 (diff) | |
download | dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.gz dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.bz2 dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.lz dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.xz dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.tar.zst dexon-05f74077fb1bc23937f3b25fd4e826dcf5789212.zip |
Merge pull request #1919 from ethersphere/getnatspec
rpc api: eth_getNatSpec
Diffstat (limited to 'rpc/api/utils.go')
-rw-r--r-- | rpc/api/utils.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/api/utils.go b/rpc/api/utils.go index 719cb8074..5a3ade46b 100644 --- a/rpc/api/utils.go +++ b/rpc/api/utils.go @@ -89,6 +89,7 @@ var ( "getBlockTransactionCount", "getBlockUncleCount", "getCode", + "getNatSpec", "getCompilers", "gasPrice", "getStorageAt", @@ -153,7 +154,7 @@ var ( ) // Parse a comma separated API string to individual api's -func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.Ethereum, docRoot string) ([]shared.EthereumApi, error) { +func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth.Ethereum) ([]shared.EthereumApi, error) { if len(strings.TrimSpace(apistr)) == 0 { return nil, fmt.Errorf("Empty apistr provided") } @@ -164,7 +165,7 @@ func ParseApiString(apistr string, codec codec.Codec, xeth *xeth.XEth, eth *eth. for i, name := range names { switch strings.ToLower(strings.TrimSpace(name)) { case shared.AdminApiName: - apis[i] = NewAdminApi(xeth, eth, codec, docRoot) + apis[i] = NewAdminApi(xeth, eth, codec) case shared.DebugApiName: apis[i] = NewDebugApi(xeth, eth, codec) case shared.DbApiName: |