MCPcopy Create free account
hub / github.com/circlefin/arc-node / createStateOverride

Function createStateOverride

tests/simulation/DelegateCall.test.ts:40–40  ·  view source on GitHub ↗
(address: Address, code: Hex)

Source from the content-addressed store, hash-verified

38
39 // Helper: Create state override for malicious contract
40 const createStateOverride = (address: Address, code: Hex) => [{ address, code }]
41
42 it('should prevent ERC1271 permit attack via staticcall', async () => {
43 const client = await hre.viem.getPublicClient({ chain: getChain(hre) })

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected