diff --git a/transactions/txArgument.go b/transactions/argument.go similarity index 97% rename from transactions/txArgument.go rename to transactions/argument.go index 8ed02ef..5aaa7e9 100644 --- a/transactions/txArgument.go +++ b/transactions/argument.go @@ -1,6 +1,6 @@ package transactions -type txArgument struct { +type Argument struct { Label string `json:"label"` Description string `json:"description"` diff --git a/transactions/getTx.go b/transactions/getTx.go index 4d761a0..407564d 100644 --- a/transactions/getTx.go +++ b/transactions/getTx.go @@ -17,7 +17,7 @@ var GetTx = Transaction{ ReadOnly: true, MetaTx: true, - Args: map[string]txArgument{ + Args: map[string]Argument{ "txName": { DataType: "string", Description: "The name of the transaction of which you want to fetch the definition. Leave empty to fetch a list of possible transactions.", diff --git a/transactions/transaction.go b/transactions/transaction.go index 4478f10..de2df38 100644 --- a/transactions/transaction.go +++ b/transactions/transaction.go @@ -17,10 +17,10 @@ type Transaction struct { Label string `json:"label"` Description string `json:"description"` - Args map[string]txArgument `json:"args"` - Method string `json:"method"` - ReadOnly bool `json:"readOnly"` - MetaTx bool `json:"metaTx"` + Args map[string]Argument `json:"args"` + Method string `json:"method"` + ReadOnly bool `json:"readOnly"` + MetaTx bool `json:"metaTx"` Routine func(shim.ChaincodeStubInterface, map[string]interface{}) ([]byte, errors.ICCError) `json:"-"` }