Merge pull request #2359 from bas-vk/rpc-optional-args

rpc: several fixes and support for optional arguments
This commit is contained in:
Jeffrey Wilcke
2016-04-12 14:03:21 +02:00
23 changed files with 3440 additions and 648 deletions

View File

@ -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