Commit 16ae6751 authored by obscuren's avatar obscuren

Unmarshal in to pointer to string

parent 12fc590b
...@@ -43,7 +43,7 @@ type PushTxArgs struct { ...@@ -43,7 +43,7 @@ type PushTxArgs struct {
func (obj *PushTxArgs) UnmarshalJSON(b []byte) (err error) { func (obj *PushTxArgs) UnmarshalJSON(b []byte) (err error) {
arg0 := "" arg0 := ""
if err = json.Unmarshal(b, arg0); err == nil { if err = json.Unmarshal(b, &arg0); err == nil {
obj.Tx = arg0 obj.Tx = arg0
return return
} }
...@@ -82,7 +82,7 @@ type GetStateArgs struct { ...@@ -82,7 +82,7 @@ type GetStateArgs struct {
func (obj *GetStateArgs) UnmarshalJSON(b []byte) (err error) { func (obj *GetStateArgs) UnmarshalJSON(b []byte) (err error) {
arg0 := "" arg0 := ""
if err = json.Unmarshal(b, arg0); err == nil { if err = json.Unmarshal(b, &arg0); err == nil {
obj.Address = arg0 obj.Address = arg0
return return
} }
...@@ -114,7 +114,7 @@ type GetTxCountArgs struct { ...@@ -114,7 +114,7 @@ type GetTxCountArgs struct {
func (obj *GetTxCountArgs) UnmarshalJSON(b []byte) (err error) { func (obj *GetTxCountArgs) UnmarshalJSON(b []byte) (err error) {
arg0 := "" arg0 := ""
if err = json.Unmarshal(b, arg0); err == nil { if err = json.Unmarshal(b, &arg0); err == nil {
obj.Address = arg0 obj.Address = arg0
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment