forked from TrueCloudLab/neoneo-go
rpc: make blockHeightFromParam a pointer method
Makes no sense copying Server here.
This commit is contained in:
parent
f345db58ab
commit
336a94456f
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,7 @@ func (s *Server) sendrawtransaction(reqParams Params) (interface{}, error) {
|
|||
return results, resultsErr
|
||||
}
|
||||
|
||||
func (s Server) blockHeightFromParam(param *Param) (int, error) {
|
||||
func (s *Server) blockHeightFromParam(param *Param) (int, error) {
|
||||
num, err := param.GetInt()
|
||||
if err != nil {
|
||||
return 0, nil
|
||||
|
|
Loading…
Reference in a new issue