From 2041d8bcba9b8ef118b439a59526843d50c2f75f Mon Sep 17 00:00:00 2001 From: Denis Davidyuk Date: Thu, 14 Sep 2023 20:18:33 +0400 Subject: [PATCH] feat(compiler): update cli and http compilers to 7.4.0 --- docker-compose.yml | 2 +- test/integration/compiler.ts | 4 ++-- test/integration/transaction.ts | 2 +- tooling/fetch-aesophia-cli.mjs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8ded0b6374..f5dcd9276e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,6 @@ services: - ./docker/accounts_test.json:/home/aeternity/node/data/aecore/.genesis/accounts_test.json compiler: - image: aeternity/aesophia_http:v7.4.0 + image: aeternity/aesophia_http:v7.6.0 hostname: compiler ports: ["3080:3080"] diff --git a/test/integration/compiler.ts b/test/integration/compiler.ts index 523ef0ca9e..173d8e78a5 100644 --- a/test/integration/compiler.ts +++ b/test/integration/compiler.ts @@ -11,7 +11,7 @@ function testCompiler(compiler: CompilerBase): void { const inclSourceCodePath = './test/integration/contracts/Includes.aes'; let inclSourceCode: string; let inclFileSystem: Record; - const inclBytecode = 'cb_+QEGRgOg7BH1sCv+p2IrS0Pn3/i6AfE8lOGUuC71lLPn6mbUm9PAuNm4cv4AWolkAjcCBwcHFBQAAgD+RNZEHwA3ADcAGg6CPwEDP/5Nt4A5AjcCBwcHDAECDAEABAMRAFqJZP6SiyA2ADcBBwcMAwgMAQAEAxFNt4A5/pSgnxIANwF3BwwBAAQDEarAwob+qsDChgI3AXcHPgQAALhgLwYRAFqJZD0uU3VibGlicmFyeS5zdW0RRNZEHxFpbml0EU23gDkxLkxpYnJhcnkuc3VtEZKLIDYRdGVzdBGUoJ8SJWdldExlbmd0aBGqwMKGOS5TdHJpbmcubGVuZ3Rogi8AhTcuMi4xAFw7b7s='; + const inclBytecode = 'cb_+QEGRgOg7BH1sCv+p2IrS0Pn3/i6AfE8lOGUuC71lLPn6mbUm9PAuNm4cv4AWolkAjcCBwcHFBQAAgD+RNZEHwA3ADcAGg6CPwEDP/5Nt4A5AjcCBwcHDAECDAEABAMRAFqJZP6SiyA2ADcBBwcMAwgMAQAEAxFNt4A5/pSgnxIANwF3BwwBAAQDEarAwob+qsDChgI3AXcHPgQAALhgLwYRAFqJZD0uU3VibGlicmFyeS5zdW0RRNZEHxFpbml0EU23gDkxLkxpYnJhcnkuc3VtEZKLIDYRdGVzdBGUoJ8SJWdldExlbmd0aBGqwMKGOS5TdHJpbmcubGVuZ3Rogi8AhTcuNC4wAGqg1h8='; const testBytecode = 'cb_+GhGA6BgYgXqYB9ctBcQ8mJ0+we5OXhb9PpsSQWP2DhPx9obn8C4O57+RNZEHwA3ADcAGg6CPwEDP/6AeCCSADcBd3cBAQCYLwIRRNZEHxFpbml0EYB4IJIZZ2V0QXJngi8AhTcuMC4xAMXqWXc='; const interfaceSourceCodePath = './test/integration/contracts/Interface.aes'; @@ -61,7 +61,7 @@ function testCompiler(compiler: CompilerBase): void { }); it('returns version', async () => { - expect(await compiler.version()).to.be.equal('7.2.1'); + expect(await compiler.version()).to.be.equal('7.4.0'); }); it('compiles and generates aci by path', async () => { diff --git a/test/integration/transaction.ts b/test/integration/transaction.ts index 69cc4ad475..dd7b7fa1d1 100644 --- a/test/integration/transaction.ts +++ b/test/integration/transaction.ts @@ -107,7 +107,7 @@ describe('Transaction', () => { }), ], [ 'contract create', - 'tx_+LAqAaEBhAyXS5cWR3ZFS6EZ2E7cTWBYqN7JK27cV4qy0wtMQgABuGr4aEYDoKEijZbj/w2AeiWwAbldusME5pm3ZgPuomnZ3TbUbYgrwLg7nv5E1kQfADcANwAaDoI/AQM//oB4IJIANwEHBwEBAJgvAhFE1kQfEWluaXQRgHggkhlnZXRBcmeCLwCFNy4yLjEAgwcAA4ZHcyzkwAAAAACDTEtAhDuaygCHKxFE1kQfP7cARy4=', + 'tx_+LAqAaEBhAyXS5cWR3ZFS6EZ2E7cTWBYqN7JK27cV4qy0wtMQgABuGr4aEYDoKEijZbj/w2AeiWwAbldusME5pm3ZgPuomnZ3TbUbYgrwLg7nv5E1kQfADcANwAaDoI/AQM//oB4IJIANwEHBwEBAJgvAhFE1kQfEWluaXQRgHggkhlnZXRBcmeCLwCFNy40LjAAgwcAA4ZHcyzkwAAAAACDTEtAhDuaygCHKxFE1kQfPz3ZtIU=', async () => aeSdk.buildTx({ tag: Tag.ContractCreateTx, nonce, diff --git a/tooling/fetch-aesophia-cli.mjs b/tooling/fetch-aesophia-cli.mjs index fa5c39f975..d4e7584832 100644 --- a/tooling/fetch-aesophia-cli.mjs +++ b/tooling/fetch-aesophia-cli.mjs @@ -3,7 +3,7 @@ import { dirname } from 'path'; import { writeFileSync, readFileSync, mkdirSync } from 'fs'; const path = './bin/aesophia_cli'; -const hash = 'KSUb0KzzM3zhM2cbHeQRqnBvRR7CHvC5Lb9VFw3RPfmC5FOYuxHvRYYsMWwFbrYg76L9fPv5IypKEZbdGohXgA=='; +const hash = 'nmCEcWHKEq5ZJ8Rv3LHlDUdnC9taCWMUjau795MN25XBMkGi2wwI0uR28HATsW8UyrzN21dcsl9ZSoICUVlrrw=='; function ensureBinaryCorrect() { const buffer = readFileSync(path); @@ -16,7 +16,7 @@ try { } catch { console.log('Fetching aesophia_cli'); const request = await fetch( - 'https://github.com/aeternity/aesophia_cli/releases/download/v7.2.1/aesophia_cli', + 'https://github.com/aeternity/aesophia_cli/releases/download/v7.4.0/aesophia_cli', ); const body = Buffer.from(await request.arrayBuffer()); mkdirSync(dirname(path), { recursive: true });