Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Dec 13, 2024
1 parent 2926881 commit 58a65be
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions system-contracts/test/KnownCodesStorage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ describe("KnownCodesStorage tests", function () {
describe("publishEVMBytecode", function () {
let deployerAccount: ethers.Signer;

Check failure on line 89 in system-contracts/test/KnownCodesStorage.spec.ts

View workflow job for this annotation

GitHub Actions / lint

'deployerAccount' is assigned a value but never used

Check failure on line 89 in system-contracts/test/KnownCodesStorage.spec.ts

View workflow job for this annotation

GitHub Actions / lint

'deployerAccount' is assigned a value but never used

Check failure on line 89 in system-contracts/test/KnownCodesStorage.spec.ts

View workflow job for this annotation

GitHub Actions / lint

'deployerAccount' is assigned a value but never used

const InvalidBytecode =
"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";

beforeEach(async () => {
deployerAccount = await ethers.getImpersonatedSigner(TEST_DEPLOYER_SYSTEM_CONTRACT_ADDRESS);
});
Expand All @@ -101,19 +98,6 @@ describe("KnownCodesStorage tests", function () {
"Unauthorized"
);
});

it("bytecode with even length failed to publish", async () => {
await expect(
knownCodesStorage.connect(deployerAccount).publishEVMBytecode(InvalidBytecode)
).to.be.revertedWithCustomError(knownCodesStorage, "MalformedBytecode");
});

it("invalid length bytecode failed to call", async () => {
await expect(knownCodesStorage.connect(deployerAccount).publishEVMBytecode("0x00")).to.be.revertedWithCustomError(
knownCodesStorage,
"MalformedBytecode"
);
});
});

describe("markFactoryDeps", function () {
Expand Down

0 comments on commit 58a65be

Please sign in to comment.