Skip to content

Commit

Permalink
Export transactions.Argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
bandreghetti committed Jul 6, 2020
1 parent e8ff1df commit 4bd58e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion transactions/txArgument.go → transactions/argument.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package transactions

type txArgument struct {
type Argument struct {
Label string `json:"label"`
Description string `json:"description"`

Expand Down
2 changes: 1 addition & 1 deletion transactions/getTx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
8 changes: 4 additions & 4 deletions transactions/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
}

0 comments on commit 4bd58e9

Please sign in to comment.