Skip to content

Commit 6d09874

Browse files
Merge pull request #389 from ava-labs/fix-db-usage
fix which DB is being called
2 parents 0e3197f + ee1787d commit 6d09874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vms/platformvm/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ func (vm *VM) getPaginatedUTXOs(
521521
start = startUTXOID
522522
}
523523

524-
utxoIDs, err := vm.getReferencingUTXOs(vm.DB, addr.Bytes(), start, searchSize) // Get UTXOs associated with [addr]
524+
utxoIDs, err := vm.getReferencingUTXOs(db, addr.Bytes(), start, searchSize) // Get UTXOs associated with [addr]
525525
if err != nil {
526526
return nil, ids.ShortID{}, ids.ID{}, fmt.Errorf("couldn't get UTXOs for address %s: %w", addr, err)
527527
}
@@ -533,7 +533,7 @@ func (vm *VM) getPaginatedUTXOs(
533533
continue
534534
}
535535

536-
utxo, err := vm.getUTXO(vm.DB, utxoID)
536+
utxo, err := vm.getUTXO(db, utxoID)
537537
if err != nil {
538538
return nil, ids.ShortID{}, ids.ID{}, fmt.Errorf("couldn't get UTXO %s: %w", utxoID, err)
539539
}

0 commit comments

Comments
 (0)