diff --git a/util/btcctl/btcctl.go b/util/btcctl/btcctl.go index eaf58b57c..aaad86e17 100644 --- a/util/btcctl/btcctl.go +++ b/util/btcctl/btcctl.go @@ -229,20 +229,14 @@ func makeCreateEncryptedWallet(args []interface{}) (btcjson.Cmd, error) { // makeCreateRawTransaction generates the cmd structure for createrawtransaction // commands. func makeCreateRawTransaction(args []interface{}) (btcjson.Cmd, error) { - // First unmarshal the JSON provided by the parameters into interfaces. - var iinputs, iamounts interface{} - err := json.Unmarshal([]byte(args[0].(string)), &iinputs) - if err != nil { - return nil, err - } - err = json.Unmarshal([]byte(args[1].(string)), &iamounts) + var inputs []btcjson.TransactionInput + err := json.Unmarshal([]byte(args[0].(string)), &inputs) if err != nil { return nil, err } - // Validate and convert the interfaces to concrete types. - inputs, amounts, err := btcjson.ConvertCreateRawTxParams(iinputs, - iamounts) + var amounts map[string]int64 + err = json.Unmarshal([]byte(args[1].(string)), &amounts) if err != nil { return nil, err }