MCPcopy Create free account
hub / github.com/5afe/safe-eip7702 / readModuleStorageSlot

Function readModuleStorageSlot

safe-eip7702-ui/src/utils/storageReader.ts:8–15  ·  view source on GitHub ↗
(
    client: PublicClient, 
    account: Address, 
    key: string
)

Source from the content-addressed store, hash-verified

6
7// Function to read module storage slot
8export const readModuleStorageSlot = async (
9 client: PublicClient,
10 account: Address,
11 key: string
12): Promise<Hex> => {
13 const moduleStorageSlot = 1n;
14 return await readMappingStorage(client, account, moduleStorageSlot, key);
15};
16
17// Function to read owner storage slot
18export const readOwnerStorageSlot = async (

Callers

nothing calls this directly

Calls 1

readMappingStorageFunction · 0.70

Tested by

no test coverage detected