cli: fix extend cmd to get the right sector number
This commit is contained in:
parent
f88fc0719f
commit
e1c00bdbba
@ -761,7 +761,7 @@ func getSectorsFromFile(filePath string) ([]abi.SectorNumber, error) {
|
|||||||
|
|
||||||
func SectorNumsToBitfield(sectors []abi.SectorNumber) bitfield.BitField {
|
func SectorNumsToBitfield(sectors []abi.SectorNumber) bitfield.BitField {
|
||||||
var numbers []uint64
|
var numbers []uint64
|
||||||
for sector := range sectors {
|
for _, sector := range sectors {
|
||||||
numbers = append(numbers, uint64(sector))
|
numbers = append(numbers, uint64(sector))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user