From 13411eb4f5c8a944da3c5170be0b0c11c906ad3e Mon Sep 17 00:00:00 2001 From: James Snewin Date: Thu, 18 Jan 2024 11:20:48 +1000 Subject: [PATCH] add storage --- src/contracts/modules/MainModuleDynamicAuthLog.sol | 2 +- tests/EIP712Debug.ts | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/contracts/modules/MainModuleDynamicAuthLog.sol b/src/contracts/modules/MainModuleDynamicAuthLog.sol index 149ce80..29eebd3 100644 --- a/src/contracts/modules/MainModuleDynamicAuthLog.sol +++ b/src/contracts/modules/MainModuleDynamicAuthLog.sol @@ -16,7 +16,7 @@ import "./commons/ModuleUpdate.sol"; * contracts by the mainmodule don't conflict and are accounted for to be * supported by the supportsInterface method. */ -contract MainModuleDynamicAuth is +contract MainModuleDynamicAuthLog is ModuleAuthDynamic, ModuleCalls, ModuleReceivers, diff --git a/tests/EIP712Debug.ts b/tests/EIP712Debug.ts index e570392..c1f348e 100644 --- a/tests/EIP712Debug.ts +++ b/tests/EIP712Debug.ts @@ -62,17 +62,10 @@ async function main() { // console.log('MAIN MODULE ADDDR: ', moduleLog.address) console.log("STORAGE AT: ", await ethers.provider.getStorageAt(scwAddr, scwAddr)); console.log('PROXY IMPLEMENTATION: ', await walletProxy.PROXY_getImplementation()) - const implementationValue = "0x0000000000000000000000000" + moduleLog.address.substring(2); + const implementationValue = "0x000000000000000000000000" + moduleLog.address.substring(2); await network.provider.send('hardhat_setStorageAt', [scwAddr, scwAddr, implementationValue]) - // Verify code update - const newCode = await ethers.provider.getCode(mainModuleAddr) - if (newCode !== modLogCode) { - console.log('Code not updated') - process.exit(0) - } - // Do signature verification // Attatch to SCW const moduleAuth = await ethers.getContractAt('ModuleAuth', scwAddr)