Skip to content

Commit 1168bce

Browse files
authored
fix: preallocate struct before appending to it (#366)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 656aba9 commit 1168bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/utxorpc/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (s *queryServiceServer) ReadUtxos(
110110
oConn.LocalStateQuery().Client.Start()
111111

112112
// Setup our query input
113-
var tmpTxIns []ledger.TransactionInput
113+
tmpTxIns := []ledger.TransactionInput{}
114114
for _, txo := range keys {
115115
// txo.Hash, txo.Index
116116
tmpTxIn := ledger.ShelleyTransactionInput{

0 commit comments

Comments
 (0)