File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ type SendMoneyRequest struct {
138
138
FeeNQT int64 `url:"feeNQT,string"`
139
139
Deadline uint `url:"deadline"`
140
140
ReferencedTransactionFullHash string `url:"referencedTransactionFullHash,omitempty"`
141
- Broadcast bool `url:"broadcast,omitempty "`
141
+ Broadcast bool `url:"broadcast"`
142
142
SecretPhrase string `url:"secretPhrase"`
143
143
res SendMoneyReply
144
144
}
@@ -168,7 +168,7 @@ type SendMoneyMultiRequest struct {
168
168
FeeNQT int64 `url:"feeNQT,string"`
169
169
Deadline uint `url:"deadline"`
170
170
ReferencedTransactionFullHash string `url:"referencedTransactionFullHash,omitempty"`
171
- Broadcast bool `url:"broadcast,omitempty "`
171
+ Broadcast bool `url:"broadcast"`
172
172
SecretPhrase string `url:"secretPhrase"`
173
173
res SendMoneyMultiReply
174
174
}
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ func TestBroadcastTransaction(t *testing.T) {
117
117
Broadcast : false })
118
118
if assert .Nil (t , err ) {
119
119
assert .NotEmpty (t , res1 .TxID )
120
+ assert .False (t , res1 .Broadcasted )
120
121
}
121
122
res2 , err := w .BroadcastTransaction (& BroadcastTransactionRequest {
122
123
TransactionBytes : res1 .TransactionBytes ,
You can’t perform that action at this time.
0 commit comments