From f1d1849be797dfe3e7f4922d29250ec1986d3568 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 15 Feb 2017 20:22:14 +0000 Subject: [PATCH] eth exp cross compatibility 2 --- console/console.go | 2 +- internal/web3ext/web3ext.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/console/console.go b/console/console.go index f32a0c6227..3d34b4207c 100644 --- a/console/console.go +++ b/console/console.go @@ -131,7 +131,7 @@ func (c *Console) init(preload []string) error { if err != nil { return fmt.Errorf("api modules: %v", err) } - flatten := "var eth = web3.eth; var personal = web3.personal; " + flatten := "var exp = eth = web3.eth; web3.exp = web3.eth; var personal = web3.personal; " for api := range apis { if api == "web3" { continue // manually mapped or ignore diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index 793f10a0ef..8a546d447d 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -22,7 +22,6 @@ var Modules = map[string]string{ "chequebook": Chequebook_JS, "debug": Debug_JS, "eth": Eth_JS, - "exp": Eth_JS, "miner": Miner_JS, "net": Net_JS, "personal": Personal_JS,