Skip to content

Commit 8ad8a24

Browse files
committed
chore(fix):default value
1 parent 239d5c7 commit 8ad8a24

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import {
1919
type ModuleName = string
2020

2121
const DEFAULT_BYTECODE_VERSION = 6
22-
const DEFAULT_LANGUAGE_VERSION = '1'
23-
const DEFAULT_COMPILER_VERSION = '1'
22+
const DEFAULT_LANGUAGE_VERSION = '2'
23+
const DEFAULT_COMPILER_VERSION = '2'
2424
export class MoveBuilder {
2525
private readonly packagePath: string
2626
private buildOptions: BuildOptions

test/build.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ describe('build move package', () => {
2626
it('get default values of move builder', () => {
2727
expect(MoveBuilder.getDefaultValues()).toEqual({
2828
bytecodeVersion: 6,
29-
compilerVersion: '1',
30-
languageVersion: '1',
29+
compilerVersion: '2',
30+
languageVersion: '2',
3131
})
3232
})
3333

test/script.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('build script and decode', () => {
1313
it('decodes script bytes', async () => {
1414
const bytePath = path.resolve(
1515
__dirname,
16-
'contract/script/build/script/bytecode_scripts/even.mv'
16+
'contract/script/build/script/bytecode_scripts/even_0.mv'
1717
)
1818
const binary = await readFile(bytePath)
1919
const decodedScript = await MoveBuilder.decodeScriptBytes(binary)

0 commit comments

Comments
 (0)