Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send UserOP got execution revert #60

Open
paulchtlab opened this issue Feb 19, 2024 · 1 comment
Open

Send UserOP got execution revert #60

paulchtlab opened this issue Feb 19, 2024 · 1 comment

Comments

@paulchtlab
Copy link

I clone this repo and run on BSC testnet. But got an execute revert error.
My factory contract: 0x02d9C684731729cFce8C3c6D9dA105989bA3159A
P256verifier : 0xfe34b51109781F42312eef7fF1edcD2e25d94773

My error :
RPC Request failed. URL: https://api.stackup.sh/v1/node/ce83d73d357334c6146e2d9ca988699d7a3165cfdc1d20942f824f2f4cec193e Request body: {"method":"eth_sendUserOperation","params":[{"sender":"0x92CF3159e316E834f9667738548D2417a7e1FeAC","nonce":"0x0","initCode":"0x02d9c684731729cfce8c3c6d9da105989ba3159a00ab22e5f1ffa003f3a587cac2e6034185bff5907f6b1a6f759f1d1f44d0932c07536618c8afc60261e9d82c4ce1eb407714af785a5e726c8d6b3e3a127662aa4acf34a6","callData":"0x34fcd5be00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000055d015e731895df240da0ca14ae802a13964426a000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044095ea7b300000000000000000000000055d015e731895df240da0ca14ae802a13964426a00000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000","callGasLimit":"0x30d40","verificationGasLimit":"0x1e8480","preVerificationGas":"0x13880","maxFeePerGas":"0xb2d05e00","maxPriorityFeePerGas":"0xb2d05e00","paymasterAndData":"0x","signature":"0x01000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000001700000000000000000000000000000000000000000000000000000000000000013ac85770e127d8f3c70b484911e58325a789a1efb3650ba5ba9dae8261920588452ce23ab3345f3e0a3fd5b76cd071c3346bd78c09eaa7ea72a21e87adf76c89000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008f7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a224151414141414141414247623858496547614d434d387a69684d74586f333371417163574731754d793139565045613334524469222c226f726967696e223a22687474703a2f2f6c6f63616c686f73743a33303030222c2263726f73734f726967696e223a66616c73657d0000000000000000000000000000000000"},"0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"]} Details: validationResult: cannot assert type: data is not of type string, failedOp: cannot assert type: data is not of type string, err: execution reverted, data: %!s(<nil>) Version: [email protected]

@0xbulma
Copy link
Member

0xbulma commented Apr 1, 2024

You need to make sure that your RPC endpoint supports the ERC 4337 that handles RPC methods such as: "method":"eth_sendUserOperation".

You can try Stackup ones. https://docs.stackup.sh/docs/node-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants