mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 17:13:45 +00:00
Unmarshal in to pointer to string
This commit is contained in:
parent
12fc590b34
commit
16ae675107
1 changed files with 3 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ type PushTxArgs struct {
|
|||
|
||||
func (obj *PushTxArgs) UnmarshalJSON(b []byte) (err error) {
|
||||
arg0 := ""
|
||||
if err = json.Unmarshal(b, arg0); err == nil {
|
||||
if err = json.Unmarshal(b, &arg0); err == nil {
|
||||
obj.Tx = arg0
|
||||
return
|
||||
}
|
||||
|
|
@ -82,7 +82,7 @@ type GetStateArgs struct {
|
|||
|
||||
func (obj *GetStateArgs) UnmarshalJSON(b []byte) (err error) {
|
||||
arg0 := ""
|
||||
if err = json.Unmarshal(b, arg0); err == nil {
|
||||
if err = json.Unmarshal(b, &arg0); err == nil {
|
||||
obj.Address = arg0
|
||||
return
|
||||
}
|
||||
|
|
@ -114,7 +114,7 @@ type GetTxCountArgs struct {
|
|||
|
||||
func (obj *GetTxCountArgs) UnmarshalJSON(b []byte) (err error) {
|
||||
arg0 := ""
|
||||
if err = json.Unmarshal(b, arg0); err == nil {
|
||||
if err = json.Unmarshal(b, &arg0); err == nil {
|
||||
obj.Address = arg0
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue