diff --git a/storagemarket/types_cbor_gen.go b/storagemarket/types_cbor_gen.go index 17907df32..7753c5eaf 100644 --- a/storagemarket/types_cbor_gen.go +++ b/storagemarket/types_cbor_gen.go @@ -656,6 +656,12 @@ func (t *StorageAsk) MarshalCBOR(w io.Writer) error { return err } + // t.MaxPieceSize (abi.PaddedPieceSize) (uint64) + + if _, err := w.Write(cbg.CborEncodeMajorType(cbg.MajUnsignedInt, uint64(t.MaxPieceSize))); err != nil { + return err + } + // t.Miner (address.Address) (struct) if err := t.Miner.MarshalCBOR(w); err != nil { return err @@ -729,6 +735,20 @@ func (t *StorageAsk) UnmarshalCBOR(r io.Reader) error { } t.MinPieceSize = abi.PaddedPieceSize(extra) + } + // t.MaxPieceSize (abi.PaddedPieceSize) (uint64) + + { + + maj, extra, err = cbg.CborReadHeader(br) + if err != nil { + return err + } + if maj != cbg.MajUnsignedInt { + return fmt.Errorf("wrong type for uint64 field") + } + t.MaxPieceSize = abi.PaddedPieceSize(extra) + } // t.Miner (address.Address) (struct)