cli: fix extend cmd to get the right sector number

This commit is contained in:
0x5459 2023-02-03 14:56:54 +08:00
parent f88fc0719f
commit e1c00bdbba

View File

@ -761,7 +761,7 @@ func getSectorsFromFile(filePath string) ([]abi.SectorNumber, error) {
func SectorNumsToBitfield(sectors []abi.SectorNumber) bitfield.BitField {
var numbers []uint64
for sector := range sectors {
for _, sector := range sectors {
numbers = append(numbers, uint64(sector))
}