You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes calls to eth_getUserOperationByHash to fail because the check that tx.to == this.address on the EntryPointV7Service is comparing a checksummed address with a lowercase address.
Specifically, the transaction receipt has to: "0x0000000071727De22E5E9d8BAf0edAc6f37da032" and the EntryPointV7Service instance has address: "0x0000000071727de22e5e9d8baf0edac6f37da032".
Expected behavior
eth_getUserOperationByHash should return the user operation with the details of the transaction.
Steps to reproduce
Start skandha in standalone mode
Send a useroperation
Wait for the useroperation to be executed
Call eth_getUserOperationByHash with the operation
Additional context
User ops are received and relayed correctly to the node (log output):
skandha-1 | [18:46:35.683] DEBUG (1): Found some entries, trying to create a bundle
skandha-1 | [18:46:35.693] DEBUG (1): Sent new bundle to Skandha relayer...
skandha-1 | [18:46:35.713] DEBUG (1): Trying to submit userops: 0xdf0f5cea19c7ca14a7f4105b168359081aa66b24a48e89b6fac4b8c44b472668
[...]
skandha-1 | [18:46:35.729] DEBUG (1): Sent new bundle 0xf4d8a12d6305b7422545a76803c0a45764a167fa5f0bd044f3b682b9aaedd85a
skandha-1 | [18:46:35.729] DEBUG (1): Bundle submitted: 0xf4d8a12d6305b7422545a76803c0a45764a167fa5f0bd044f3b682b9aaedd85a
skandha-1 | [18:46:35.729] DEBUG (1): User op hashes 0xdf0f5cea19c7ca14a7f4105b168359081aa66b24a48e89b6fac4b8c44b472668
But calling eth_getUserOperationByHash fails with Error: unable to parse transaction:
The root cause seems to be the way that env vars are loaded into the config. A current workaround is to set the relayer in config.json instead of through env vars, this prevents the issue.
But a real fix would probably be to always normalize addresses for comparison.
Operating system
Linux
Skandha version or commit hash
v2-2.0.22
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm using skandha in standalone mode with a local fork using foundry's
anvil
. The entrypoint address is set via env variables:This causes calls to
eth_getUserOperationByHash
to fail because the check thattx.to == this.address
on theEntryPointV7Service
is comparing a checksummed address with a lowercase address.Specifically, the transaction receipt has
to: "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
and theEntryPointV7Service
instance hasaddress: "0x0000000071727de22e5e9d8baf0edac6f37da032"
.Expected behavior
eth_getUserOperationByHash
should return the user operation with the details of the transaction.Steps to reproduce
eth_getUserOperationByHash
with the operationAdditional context
User ops are received and relayed correctly to the node (log output):
But calling
eth_getUserOperationByHash
fails withError: unable to parse transaction
:The root cause seems to be the way that env vars are loaded into the config. A current workaround is to set the relayer in
config.json
instead of through env vars, this prevents the issue.But a real fix would probably be to always normalize addresses for comparison.
Operating system
Linux
Skandha version or commit hash
v2-2.0.22
The text was updated successfully, but these errors were encountered: