瀏覽代碼

fixed rpc/api.GasPrice

zsfelfoldi 10 年之前
父節點
當前提交
b42b70eb5f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/api/eth.go

+ 1 - 1
rpc/api/eth.go

@@ -139,7 +139,7 @@ func (self *ethApi) IsMining(req *shared.Request) (interface{}, error) {
 }
 
 func (self *ethApi) GasPrice(req *shared.Request) (interface{}, error) {
-	return newHexNum(xeth.DefaultGasPrice().Bytes()), nil
+	return newHexNum(self.xeth.DefaultGasPrice().Bytes()), nil
 }
 
 func (self *ethApi) GetStorage(req *shared.Request) (interface{}, error) {