Skip to content

Commit f50c057

Browse files
committed
delete unused field
1 parent 8039479 commit f50c057

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

output.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ type Output struct {
3838
Signers []string `json:"signers"`
3939
SignedBy string `json:"signed_by"`
4040

41-
InscriptionHash string `json:"inscription_hash,omitempty"`
42-
Deposit *KernelDepositView `json:"deposit,omitempty"`
43-
RequestId string `json:"request_id,omitempty"`
41+
InscriptionHash string `json:"inscription_hash,omitempty"`
42+
RequestId string `json:"request_id,omitempty"`
4443
}
4544

4645
func ListUnspentOutputs(ctx context.Context, membersHash string, threshold byte, kernelAssetId string, u *SafeUser) ([]*Output, error) {
@@ -61,7 +60,7 @@ func ListOutputs(ctx context.Context, membersHash string, threshold byte, assetI
6160
if state != "" {
6261
v.Set("state", state)
6362
}
64-
method, path := "GET", fmt.Sprintf("%s", "/safe/outputs?"+v.Encode())
63+
method, path := "GET", fmt.Sprintf("/safe/outputs?%s", v.Encode())
6564
token, err := SignAuthenticationToken(method, path, "", u)
6665
if err != nil {
6766
return nil, err
@@ -102,7 +101,7 @@ func ListOutputsByToken(ctx context.Context, membersHash string, threshold byte,
102101
if state != "" {
103102
v.Set("state", state)
104103
}
105-
method, path := "GET", fmt.Sprintf("%s", "/safe/outputs?"+v.Encode())
104+
method, path := "GET", fmt.Sprintf("/safe/outputs?%s", v.Encode())
106105
body, err := Request(ctx, method, path, []byte{}, accessToken)
107106
if err != nil {
108107
return nil, err

0 commit comments

Comments
 (0)