aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-12 22:59:07 +0800
committerobscuren <geffobscura@gmail.com>2015-03-12 22:59:07 +0800
commit2273155e7e325a2a6a940fffae7e9f6744b2ec22 (patch)
tree1767f5b797db8988afc46e9118b61d522a9c5226 /rpc/args.go
parent26a563642431806486b595f29e22ae833abb6a8c (diff)
downloaddexon-2273155e7e325a2a6a940fffae7e9f6744b2ec22.tar.gz
dexon-2273155e7e325a2a6a940fffae7e9f6744b2ec22.tar.zst
dexon-2273155e7e325a2a6a940fffae7e9f6744b2ec22.zip
Get transaction implemented
* Added a GetTransaction to XEth * Implemented the `eth_getTransactionByHash` RPC method
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 40f8575b2..faca03b63 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -280,8 +280,8 @@ func (args *BlockNumIndexArgs) UnmarshalJSON(b []byte) (err error) {
}
type HashIndexArgs struct {
- BlockHash string
- Index int64
+ Hash string
+ Index int64
}
func (args *HashIndexArgs) UnmarshalJSON(b []byte) (err error) {
@@ -299,7 +299,7 @@ func (args *HashIndexArgs) UnmarshalJSON(b []byte) (err error) {
if !ok {
return errDecodeArgs
}
- args.BlockHash = arg0
+ args.Hash = arg0
if len(obj) > 1 {
arg1, ok := obj[1].(string)