passkeys-4337 / smart-wallet

Simple implementation of an ERC-4337 contract wallet controlled by Passkeys
https://passkeys-4337.vercel.app
GNU General Public License v3.0
119 stars 21 forks source link

ERROR : account uses STATICCALL #62

Open Shimadakunn opened 7 months ago

Shimadakunn commented 7 months ago

Hi,

Thanks for your work on this repo

However I encounter this error when executing an userOp

Can you help me fix it please?

URL: https://api.stackup.sh/v1/node/2a424c869c4fc070bb514c5e3eab94260dd84b91eddf10390e1e5eae82e1220d Request body: {"method":"eth_sendUserOperation","params":[{"sender":"0x7d338Bbf69507375Fcb19BF3E302607f02707FFc","nonce":"0x0","initCode":"0xdd0f9cb4cf53d28b976c13e7ee4a169f841924c000ab22e5f5b872d689bec3a69248819b19739c1842b0142d08bb3adf088330322889bf3a7fc7c32c52bacfacd32c98b8aa363f00e9969b138b9a7aa1c0ef1a68b96cbd50","callData":"0x34fcd5be0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000001f29312f134c79984ba4b21840f2c3dcf57b9c85000000000000000000000000000000000000000000000000000b8ad2d6f558a900000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000","callGasLimit":"0x476e","verificationGasLimit":"0x192560","preVerificationGas":"0x79b80","maxFeePerGas":"0x3c2a069f","maxPriorityFeePerGas":"0x3b8ccd75","paymasterAndData":"0x","signature":"0x01000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001f45703d2c67b6b99ee67de947e92d3d1a1e7889a74e1e3f224f15992504d6369227d7209173cdc41c1d7a28a8c62279aa9bbcd7f65b735e4211cc1554189933b000000000000000000000000000000000000000000000000000000000000002526ab74412a61817338ad6e53da3352f9c908a6a688617d2fb520475b909436aa1900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a22415141414141414141426e77646d594650386174313853454c6b777048485f736d6c3361796f714f31507a364d7a492d444f7854222c226f726967696e223a2268747470733a2f2f706173736b6579732d343333372e76657263656c2e617070222c2263726f73734f726967696e223a66616c73657d000000000000"},"0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"]} Details: account uses STATICCALL on an address with no deployed code: 0x000000000000000000636F6e736F6c652e6c6f67 Version: viem@1.19.2

Insomnia501 commented 6 months ago

me2

Shimadakunn commented 6 months ago

Try to do it on an other chain, I have not enough eth to deploy the smart wallet.

I did it on Arbitrum Sepolia

johnhckuo commented 4 months ago

The address 0x000000000000000000636F6e736F6c652e6c6f67 is the logging contract used in hardhat (source)

and it should only be used for local development, i think they didn't disable console.log for non-local environment. Therefore it is attempting to STATICCALL an address that does not have contract code on testnet.

tocilla commented 2 months ago

I have the same issue, did anyone found a solution to this?