mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
eth exp cross compatibility 2
This commit is contained in:
parent
a7c6f92d4e
commit
f1d1849be7
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue