aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-15 09:08:08 +0800
committerobscuren <geffobscura@gmail.com>2015-02-15 09:08:08 +0800
commit16ae675107c150f3373bc8f6ae0647b27f4f0b4e (patch)
tree90822fc4b253ccc06ff2f15e6a8a2eb497273cd2 /rpc/args.go
parent12fc590b34fba3391799fbdfd66ef029f7a551f4 (diff)
downloadgo-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.tar
go-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.tar.gz
go-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.tar.bz2
go-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.tar.lz
go-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.tar.xz
go-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.tar.zst
go-tangerine-16ae675107c150f3373bc8f6ae0647b27f4f0b4e.zip
Unmarshal in to pointer to string
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 84b076d4a..12e3103bc 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -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
}