aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorTed Yin <[email protected]>2020-09-08 00:42:35 -0400
committerGitHub <[email protected]>2020-09-08 00:42:35 -0400
commit22e5802155d7ee4314898e3a75144aa90def8df8 (patch)
treec0bc18693cc0aa3ca551053697f3b521a748140c /plugin/evm/vm.go
parent891eb16f79fbc8552ede10d786bf70927f78367a (diff)
parent13718f05008268dd887257d87a4116b37afb1eeb (diff)
Merge pull request #14 from ava-labs/TS_ava_to_avax
change /ava API to /avax
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r--plugin/evm/vm.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index e1fdc33..b0073da 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -519,9 +519,9 @@ func (vm *VM) CreateHandlers() map[string]*commonEng.HTTPHandler {
handler.RegisterName("admin", &admin.Performance{})
return map[string]*commonEng.HTTPHandler{
- "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler},
- "/ava": newHandler("ava", &AvaAPI{vm}),
- "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
+ "/rpc": {LockOptions: commonEng.NoLock, Handler: handler},
+ "/avax": newHandler("avax", &AvaxAPI{vm}),
+ "/ws": {LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
}
}
@@ -530,8 +530,8 @@ func (vm *VM) CreateStaticHandlers() map[string]*commonEng.HTTPHandler {
handler := rpc.NewServer()
handler.RegisterName("static", &StaticService{})
return map[string]*commonEng.HTTPHandler{
- "/rpc": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler},
- "/ws": &commonEng.HTTPHandler{LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
+ "/rpc": {LockOptions: commonEng.NoLock, Handler: handler},
+ "/ws": {LockOptions: commonEng.NoLock, Handler: handler.WebsocketHandler([]string{"*"})},
}
}