Skip to content

Commit

Permalink
Added omitempty tag for TransactionTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhmakAS committed Oct 2, 2024
1 parent 310ffa0 commit 28aabde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/transaction_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ type StoredTarget struct {

type TransactionInvocationTarget struct {
// Hex-encoded entity address identifying the invocable entity.
ByHash *key.Hash `json:"ByHash"`
ByHash *key.Hash `json:"ByHash,omitempty"`
// The alias identifying the invocable entity.
ByName *string `json:"ByName"`
ByName *string `json:"ByName,omitempty"`
// The address and optional version identifying the package.
ByPackageHash *ByPackageHashInvocationTarget `json:"ByPackageHash"`
ByPackageHash *ByPackageHashInvocationTarget `json:"ByPackageHash,omitempty"`
// The alias and optional version identifying the package.
ByPackageName *ByPackageNameInvocationTarget `json:"ByPackageName"`
ByPackageName *ByPackageNameInvocationTarget `json:"ByPackageName,omitempty"`
}

// ByPackageHashInvocationTarget The address and optional version identifying the package.
Expand Down

0 comments on commit 28aabde

Please sign in to comment.