diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:20:54 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 11:20:54 +0800 |
commit | 6669ef5b701f8b060287c8a63e9f3c1116b4b74a (patch) | |
tree | a669e6e774aaacc5edc8ee93dc2be259d4a690e5 /rpc/args_test.go | |
parent | 7b45f3377f3f8d911d7678530138a1249f523155 (diff) | |
download | dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.gz dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.bz2 dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.lz dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.xz dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.tar.zst dexon-6669ef5b701f8b060287c8a63e9f3c1116b4b74a.zip |
Rename for clarity
Diffstat (limited to 'rpc/args_test.go')
-rw-r--r-- | rpc/args_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rpc/args_test.go b/rpc/args_test.go index 0d8dc4085..f1ad6e8ed 100644 --- a/rpc/args_test.go +++ b/rpc/args_test.go @@ -82,7 +82,7 @@ func TestGetBlockByHashArgs(t *testing.T) { input := `["0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331", true]` expected := new(GetBlockByHashArgs) expected.BlockHash = "0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331" - expected.Transactions = true + expected.IncludeTxs = true args := new(GetBlockByHashArgs) if err := json.Unmarshal([]byte(input), &args); err != nil { @@ -93,8 +93,8 @@ func TestGetBlockByHashArgs(t *testing.T) { t.Errorf("BlockHash should be %v but is %v", expected.BlockHash, args.BlockHash) } - if args.Transactions != expected.Transactions { - t.Errorf("Transactions should be %v but is %v", expected.Transactions, args.Transactions) + if args.IncludeTxs != expected.IncludeTxs { + t.Errorf("IncludeTxs should be %v but is %v", expected.IncludeTxs, args.IncludeTxs) } } @@ -112,7 +112,7 @@ func TestGetBlockByNumberArgs(t *testing.T) { input := `["0x1b4", false]` expected := new(GetBlockByNumberArgs) expected.BlockNumber = 436 - expected.Transactions = false + expected.IncludeTxs = false args := new(GetBlockByNumberArgs) if err := json.Unmarshal([]byte(input), &args); err != nil { @@ -123,8 +123,8 @@ func TestGetBlockByNumberArgs(t *testing.T) { t.Errorf("BlockHash should be %v but is %v", expected.BlockNumber, args.BlockNumber) } - if args.Transactions != expected.Transactions { - t.Errorf("Transactions should be %v but is %v", expected.Transactions, args.Transactions) + if args.IncludeTxs != expected.IncludeTxs { + t.Errorf("IncludeTxs should be %v but is %v", expected.IncludeTxs, args.IncludeTxs) } } |