From 5ccb32c2c50ffecbb57bc8656c01789205c36df1 Mon Sep 17 00:00:00 2001 From: Michael Heuer Date: Mon, 15 Apr 2024 12:30:11 +0200 Subject: [PATCH] refactor: metadata encoding --- packages/contracts/test/10_unit-testing/11_plugin.ts | 5 +---- packages/contracts/test/10_unit-testing/12_plugin-setup.ts | 5 +---- .../test/20_integration-testing/22_setup-processing.ts | 4 +--- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/contracts/test/10_unit-testing/11_plugin.ts b/packages/contracts/test/10_unit-testing/11_plugin.ts index 8c429ac9..3cd068f5 100644 --- a/packages/contracts/test/10_unit-testing/11_plugin.ts +++ b/packages/contracts/test/10_unit-testing/11_plugin.ts @@ -375,10 +375,7 @@ type FixtureResult = { async function fixture(): Promise { const [deployer, alice, bob] = await ethers.getSigners(); - - const dummyMetadata = ethers.utils.hexlify( - ethers.utils.toUtf8Bytes('0x123456789') - ); + const dummyMetadata = '0x12345678'; const dao = await createDaoProxy(deployer, dummyMetadata); const adminPluginImplementation = await new Admin__factory(deployer).deploy(); diff --git a/packages/contracts/test/10_unit-testing/12_plugin-setup.ts b/packages/contracts/test/10_unit-testing/12_plugin-setup.ts index f4e79dfc..97df376a 100644 --- a/packages/contracts/test/10_unit-testing/12_plugin-setup.ts +++ b/packages/contracts/test/10_unit-testing/12_plugin-setup.ts @@ -30,10 +30,7 @@ type FixtureResult = { async function fixture(): Promise { const [deployer, alice, bob] = await ethers.getSigners(); - - const dummyMetadata = ethers.utils.hexlify( - ethers.utils.toUtf8Bytes('0x123456789') - ); + const dummyMetadata = '0x12345678'; const dao = await createDaoProxy(deployer, dummyMetadata); const pluginSetup = await new AdminSetup__factory(deployer).deploy(); diff --git a/packages/contracts/test/20_integration-testing/22_setup-processing.ts b/packages/contracts/test/20_integration-testing/22_setup-processing.ts index ec159a88..d98e7ddd 100644 --- a/packages/contracts/test/20_integration-testing/22_setup-processing.ts +++ b/packages/contracts/test/20_integration-testing/22_setup-processing.ts @@ -108,9 +108,7 @@ async function fixture(): Promise { await deployments.fixture(tags); const [deployer, alice, bob] = await ethers.getSigners(); - const dummyMetadata = ethers.utils.hexlify( - ethers.utils.toUtf8Bytes('0x123456789') - ); + const dummyMetadata = '0x12345678'; const dao = await createDaoProxy(deployer, dummyMetadata); const network = getNetworkNameByAlias(productionNetworkName);