From 3b7d486833e3f9c4be5f7627151cad9e1948e786 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 25 Sep 2023 10:03:32 +0200 Subject: [PATCH 1/3] fix bytecode error --- apps/remix-ide-e2e/src/tests/terminal.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index 0e64b513dac..fe6ec1b11e7 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -546,8 +546,8 @@ describe("Storage", function () { contractName: 'Lib', sourceName: 'contracts/StorageWithLib.sol', abi: metadataLib.abi, - bytecode: '0x' + metadataLib.data.bytecode.object, - deployedBytecode: '0x' + metadataLib.data.deployedBytecode.object, + bytecode: metadataLib.data.bytecode.object, + deployedBytecode: metadataLib.data.deployedBytecode.object, linkReferences: metadataLib.data.bytecode.linkReferences, deployedLinkReferences: metadataLib.data.deployedBytecode.linkReferences, } @@ -562,8 +562,8 @@ describe("Storage", function () { contractName: 'StorageWithLib', sourceName: 'contracts/StorageWithLib.sol', abi: metadata.abi, - bytecode: '0x' + metadata.data.bytecode.object, - deployedBytecode: '0x' + metadata.data.deployedBytecode.object, + bytecode: metadata.data.bytecode.object, + deployedBytecode: metadata.data.deployedBytecode.object, linkReferences: metadata.data.bytecode.linkReferences, deployedLinkReferences: metadata.data.deployedBytecode.linkReferences, } @@ -700,8 +700,8 @@ const scriptAutoExec = { contractName: 'Lib', sourceName: 'contracts/1_Storage.sol', abi: metadataLib.abi, - bytecode: '0x' + metadataLib.data.bytecode.object, - deployedBytecode: '0x' + metadataLib.data.deployedBytecode.object, + bytecode: metadataLib.data.bytecode.object, + deployedBytecode: metadataLib.data.deployedBytecode.object, linkReferences: metadataLib.data.bytecode.linkReferences, deployedLinkReferences: metadataLib.data.deployedBytecode.linkReferences, } @@ -720,8 +720,8 @@ const scriptAutoExec = { contractName: 'Storage', sourceName: 'contracts/1_Storage.sol', abi: metadata.abi, - bytecode: '0x' + metadata.data.bytecode.object, - deployedBytecode: '0x' + metadata.data.deployedBytecode.object, + bytecode: metadata.data.bytecode.object, + deployedBytecode: metadata.data.deployedBytecode.object, linkReferences: metadata.data.bytecode.linkReferences, deployedLinkReferences: metadata.data.deployedBytecode.linkReferences, } From b52d77c22a8471b01a8058116be9871b94eb6757 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 25 Sep 2023 10:10:02 +0200 Subject: [PATCH 2/3] change --- apps/remix-ide-e2e/src/tests/terminal.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index fe6ec1b11e7..611c69ada79 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -700,8 +700,8 @@ const scriptAutoExec = { contractName: 'Lib', sourceName: 'contracts/1_Storage.sol', abi: metadataLib.abi, - bytecode: metadataLib.data.bytecode.object, - deployedBytecode: metadataLib.data.deployedBytecode.object, + bytecode: '0x' + metadataLib.data.bytecode.object, + deployedBytecode: '0x' + metadataLib.data.deployedBytecode.object, linkReferences: metadataLib.data.bytecode.linkReferences, deployedLinkReferences: metadataLib.data.deployedBytecode.linkReferences, } @@ -721,7 +721,7 @@ const scriptAutoExec = { sourceName: 'contracts/1_Storage.sol', abi: metadata.abi, bytecode: metadata.data.bytecode.object, - deployedBytecode: metadata.data.deployedBytecode.object, + deployedBytecode: '0x' + metadata.data.deployedBytecode.object, linkReferences: metadata.data.bytecode.linkReferences, deployedLinkReferences: metadata.data.deployedBytecode.linkReferences, } From d7ce267acc85cc9b0f6d99d4603f4943ca7b8286 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 25 Sep 2023 10:11:44 +0200 Subject: [PATCH 3/3] change --- apps/remix-ide-e2e/src/tests/terminal.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/terminal.test.ts b/apps/remix-ide-e2e/src/tests/terminal.test.ts index 611c69ada79..38dbb553af6 100644 --- a/apps/remix-ide-e2e/src/tests/terminal.test.ts +++ b/apps/remix-ide-e2e/src/tests/terminal.test.ts @@ -546,8 +546,8 @@ describe("Storage", function () { contractName: 'Lib', sourceName: 'contracts/StorageWithLib.sol', abi: metadataLib.abi, - bytecode: metadataLib.data.bytecode.object, - deployedBytecode: metadataLib.data.deployedBytecode.object, + bytecode: '0x' + metadataLib.data.bytecode.object, + deployedBytecode: '0x' + metadataLib.data.deployedBytecode.object, linkReferences: metadataLib.data.bytecode.linkReferences, deployedLinkReferences: metadataLib.data.deployedBytecode.linkReferences, } @@ -563,7 +563,7 @@ describe("Storage", function () { sourceName: 'contracts/StorageWithLib.sol', abi: metadata.abi, bytecode: metadata.data.bytecode.object, - deployedBytecode: metadata.data.deployedBytecode.object, + deployedBytecode: '0x' + metadata.data.deployedBytecode.object, linkReferences: metadata.data.bytecode.linkReferences, deployedLinkReferences: metadata.data.deployedBytecode.linkReferences, } @@ -700,7 +700,7 @@ const scriptAutoExec = { contractName: 'Lib', sourceName: 'contracts/1_Storage.sol', abi: metadataLib.abi, - bytecode: '0x' + metadataLib.data.bytecode.object, + bytecode: metadataLib.data.bytecode.object, deployedBytecode: '0x' + metadataLib.data.deployedBytecode.object, linkReferences: metadataLib.data.bytecode.linkReferences, deployedLinkReferences: metadataLib.data.deployedBytecode.linkReferences,