eth exp cross compatibility 2

This commit is contained in:
chris 2017-02-15 20:22:14 +00:00
parent a7c6f92d4e
commit f1d1849be7
2 changed files with 1 additions and 2 deletions

View file

@ -131,7 +131,7 @@ func (c *Console) init(preload []string) error {
if err != nil { if err != nil {
return fmt.Errorf("api modules: %v", err) 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 { for api := range apis {
if api == "web3" { if api == "web3" {
continue // manually mapped or ignore continue // manually mapped or ignore

View file

@ -22,7 +22,6 @@ var Modules = map[string]string{
"chequebook": Chequebook_JS, "chequebook": Chequebook_JS,
"debug": Debug_JS, "debug": Debug_JS,
"eth": Eth_JS, "eth": Eth_JS,
"exp": Eth_JS,
"miner": Miner_JS, "miner": Miner_JS,
"net": Net_JS, "net": Net_JS,
"personal": Personal_JS, "personal": Personal_JS,