Skip to content

Commit b42b70e

Browse files
committed
fixed rpc/api.GasPrice
1 parent 610adfd commit b42b70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpc/api/eth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (self *ethApi) IsMining(req *shared.Request) (interface{}, error) {
139139
}
140140

141141
func (self *ethApi) GasPrice(req *shared.Request) (interface{}, error) {
142-
return newHexNum(xeth.DefaultGasPrice().Bytes()), nil
142+
return newHexNum(self.xeth.DefaultGasPrice().Bytes()), nil
143143
}
144144

145145
func (self *ethApi) GetStorage(req *shared.Request) (interface{}, error) {

0 commit comments

Comments
 (0)