Skip to content

Commit

Permalink
fix(compiler): disable cli compiler compilation warnings (until #1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Dec 6, 2023
1 parent 95f34ac commit 30866ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/contract/compiler/Cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class CompilerCli extends CompilerBase {
await this.#ensureCompatibleVersion;
try {
const [bytecode, aci] = await Promise.all([
this.#run(path),
this.#run(path, '--no_warning', 'all'),
this.#run('--create_json_aci', path).then((res) => JSON.parse(res)),
]);
return {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function testCompiler(compiler: CompilerBase): void {
)).to.be.rejectedWith(
CompilerError,
compiler instanceof CompilerCli
? /Command failed: escript .+[\\/]bin[\\/]aesophia_cli( --create_json_aci)? .+\.aes\nType error( in '.+\.aes')? at line 3, col 3:\nDuplicate definitions of `getArg` at\n {2}- line 2, column 3\n {2}- line 3, column 3\n\n/m
? /Command failed: escript .+[\\/]bin[\\/]aesophia_cli( --create_json_aci)? .+\.aes( --no_warning all)?\nType error( in '.+\.aes')? at line 3, col 3:\nDuplicate definitions of `getArg` at\n {2}- line 2, column 3\n {2}- line 3, column 3\n\n/m
: 'compile error:\n'
+ 'type_error:3:3: Duplicate definitions of `getArg` at\n'
+ ' - line 2, column 3\n'
Expand Down

0 comments on commit 30866ef

Please sign in to comment.