diff options
author | Aaron Buchwald <[email protected]> | 2020-11-04 12:22:04 -0500 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-11-04 12:23:30 -0500 |
commit | e3c39e7cde79a0f5b080db026242056032a1f55a (patch) | |
tree | 484c281f203a286e5e6ac268e4c1db751662b5a0 /plugin/evm/vm.go | |
parent | c613e21ea107e8369926f4b53b7830a9d5dabf18 (diff) |
Add back web3 API
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r-- | plugin/evm/vm.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index c902f85..a8c4fc0 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -534,6 +534,10 @@ func (vm *VM) CreateHandlers() map[string]*commonEng.HTTPHandler { handler.RegisterName("net", &NetAPI{vm}) enabledAPIs = append(enabledAPIs, "net") } + if vm.CLIConfig.Web3APIEnabled { + handler.RegisterName("web3", &Web3API{}) + enabledAPIs = append(enabledAPIs, "web3") + } log.Info(fmt.Sprintf("Enabled APIs: %s", strings.Join(enabledAPIs, ", "))) |