Merge pull request #2359 from bas-vk/rpc-optional-args
rpc: several fixes and support for optional arguments
This commit is contained in:
@ -238,7 +238,7 @@ func (js *jsre) apiBindings() error {
|
||||
}
|
||||
|
||||
// load only supported API's in javascript runtime
|
||||
shortcuts := "var eth = web3.eth; "
|
||||
shortcuts := "var eth = web3.eth; var personal = web3.personal; "
|
||||
for _, apiName := range apiNames {
|
||||
if apiName == "web3" || apiName == "rpc" {
|
||||
continue // manually mapped or ignore
|
||||
|
Reference in New Issue
Block a user