Skip to content

Commit

Permalink
Update tools/block-generator/generator/generate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Will Winder <wwinder.unh@gmail.com>
  • Loading branch information
tzaffi and winder committed Jun 12, 2023
1 parent 115abe1 commit 6d2e57f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/block-generator/generator/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,11 @@ func (g *generator) generateAssetTxnInternalHint(txType TxTypeID, round uint64,
var assetIndex uint64
var asset *assetData
if hint != nil {
assetIndex, asset = hintIndex, hint
assetIndex = hintIndex
asset = hint
} else {
assetIndex, asset = rand.Uint64()%numAssets, g.assets[assetIndex]
assetIndex = rand.Uint64()%numAssets
asset = g.assets[assetIndex]
}

switch actual {
Expand Down

0 comments on commit 6d2e57f

Please sign in to comment.