@@ -150,14 +150,13 @@ func (w *Wallet) SendTransaction(tx *types.Transaction) (id string, err error) {
150
150
return
151
151
}
152
152
153
- func (w * Wallet ) SendPstTransfer (contractId string , target string , qty int64 , customTags []types.Tag , speedFactor int64 ) (string , error ) {
153
+ func (w * Wallet ) SendPst (contractId string , target string , qty int64 , customTags []types.Tag , speedFactor int64 ) (string , error ) {
154
154
// assemble tx tags
155
- txTags := make ([]types.Tag , 0 )
156
155
swcTags , err := utils .PstTransferTags (contractId , target , qty )
157
156
if err != nil {
158
157
return "" , err
159
158
}
160
- txTags = append ( txTags , swcTags ... )
159
+
161
160
if len (customTags ) > 0 {
162
161
// customTags can not include pstTags
163
162
mmap := map [string ]struct {}{
@@ -171,13 +170,13 @@ func (w *Wallet) SendPstTransfer(contractId string, target string, qty int64, cu
171
170
return "" , errors .New ("custom tags can not include smartweave tags" )
172
171
}
173
172
}
174
- txTags = append (txTags , customTags ... )
173
+ swcTags = append (swcTags , customTags ... )
175
174
}
176
175
177
176
// rand data
178
177
data := strconv .Itoa (rand .Intn (9999 ))
179
178
// send data tx
180
- txId , err := w .SendDataSpeedUp ([]byte (data ), txTags , speedFactor )
179
+ txId , err := w .SendDataSpeedUp ([]byte (data ), swcTags , speedFactor )
181
180
if err != nil {
182
181
return "" , err
183
182
}
0 commit comments