Skip to content

Commit

Permalink
add storage
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardJES committed Jan 18, 2024
1 parent d212ec1 commit 13411eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/contracts/modules/MainModuleDynamicAuthLog.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 1 addition & 8 deletions tests/EIP712Debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13411eb

Please sign in to comment.