basic functionality test for decoderawtransactioncmd
This commit is contained in:
parent
6227c446d3
commit
bac5600145
1 changed files with 11 additions and 0 deletions
|
@ -124,6 +124,17 @@ var jsoncmdtests = []struct {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "basic decoderawtransaction",
|
||||||
|
f: func() (Cmd, error) {
|
||||||
|
return NewDecodeRawTransactionCmd(float64(1),
|
||||||
|
"thisisahexidecimaltransaction")
|
||||||
|
},
|
||||||
|
result: &DecodeRawTransactionCmd{
|
||||||
|
id: float64(1),
|
||||||
|
HexTx: "thisisahexidecimaltransaction",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "basic ping",
|
name: "basic ping",
|
||||||
f: func() (Cmd, error) {
|
f: func() (Cmd, error) {
|
||||||
|
|
Loading…
Reference in a new issue