@@ -70,7 +70,7 @@ export class LogDecoder {
7070 }
7171
7272 public deserialize ( components : types . LogComponentsWithFrontier , params : DeserializeParams = { } ) : DecodeResult {
73- const [ view , metadata , model , , ...frontier ] = components ;
73+ const [ view , header , model , , ...frontier ] = components ;
7474 const result : DecodeResult = { } ;
7575 if ( params . view ) result . view = view ;
7676 if ( params . history ) result . history = this . deserializeHistory ( components ) ;
@@ -79,7 +79,7 @@ export class LogDecoder {
7979 if ( result . history ) {
8080 result . frontier = result . history ;
8181 } else if ( model ) {
82- const modelFormat = metadata [ 1 ] ;
82+ const modelFormat = header [ 1 ] ;
8383 const start = ( ) : Model => {
8484 const isSidecar = modelFormat === FileModelEncoding . SidecarBinary ;
8585 if ( isSidecar ) {
@@ -102,7 +102,7 @@ export class LogDecoder {
102102 }
103103
104104 public deserializeHistory ( components : types . LogComponentsWithFrontier ) : Log {
105- const [ , , , history , ...frontier ] = components ;
105+ const [ , header , , history , ...frontier ] = components ;
106106 const [ startSerialized ] = history ;
107107 const start = ( ) : Model => {
108108 if ( ! history || ! startSerialized ) {
@@ -112,7 +112,7 @@ export class LogDecoder {
112112 }
113113 return this . deserializeModel ( startSerialized ) ;
114114 } ;
115- const log = new Log ( start ) ;
115+ const log = new Log ( start , void 0 , header [ 0 ] ) ;
116116 const end = log . end ;
117117 if ( history ) {
118118 const [ , patches ] = history ;
0 commit comments