Explorar o código

fixed rpc/api.GasPrice

zsfelfoldi %!s(int64=10) %!d(string=hai) anos
pai
achega
b42b70eb5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {