@@ -18,6 +18,9 @@ import {
1818
1919type  ModuleName  =  string 
2020
21+ const  DEFAULT_BYTECODE_VERSION  =  6 
22+ const  DEFAULT_LANGUAGE_VERSION  =  '1' 
23+ const  DEFAULT_COMPILER_VERSION  =  '1' 
2124export  class  MoveBuilder  { 
2225  private  readonly  packagePath : string 
2326  private  buildOptions : BuildOptions 
@@ -32,6 +35,19 @@ export class MoveBuilder {
3235    this . buildOptions  =  buildOptions 
3336  } 
3437
38+   /** 
39+    * Get default value of a Movebuiler 
40+    * - version of bytecode 
41+    * - version of move compiler 
42+    * - version of move language version 
43+    */ 
44+   static  getDefaultValues ( )  { 
45+     return  { 
46+       bytecodeVersion : DEFAULT_BYTECODE_VERSION , 
47+       compilerVersion : DEFAULT_COMPILER_VERSION , 
48+       languageVersion : DEFAULT_LANGUAGE_VERSION , 
49+     } 
50+   } 
3551  /** 
3652   * Create raw build configuration. 
3753   * @returns  Raw build configuration. 
@@ -62,9 +78,12 @@ export class MoveBuilder {
6278            fetch_deps_only : this . buildOptions . fetchDepsOnly  ||  false , 
6379            skip_fetch_latest_git_deps :
6480              this . buildOptions . skipFetchLatestGitDeps  ||  false , 
65-             bytecode_version : this . buildOptions . bytecodeVersion  ||  0 , 
66-             compiler_version : this . buildOptions . compilerVersion  ||  '0' , 
67-             language_version : this . buildOptions . languageVersion  ||  '0' , 
81+             bytecode_version :
82+               this . buildOptions . bytecodeVersion  ||  DEFAULT_BYTECODE_VERSION , 
83+             compiler_version :
84+               this . buildOptions . compilerVersion  ||  DEFAULT_COMPILER_VERSION , 
85+             language_version :
86+               this . buildOptions . languageVersion  ||  DEFAULT_LANGUAGE_VERSION , 
6887            additional_named_addresses : additionalNamedAddresses , 
6988          } , 
7089        } ) 
0 commit comments