zkSync Smart Account produces wrong signature on zksyncInMemoryNode
local network
#2658
Open
1 task done
zksyncInMemoryNode
local network
#2658
Check existing issues
Viem Version
2.19.9
Current Behavior
Test run
description: deploy @openfort-xyz smart accounts (account implementation, factory, account proxy), deploy mockERC20, try to mint tokens, and check if the smart account balance has updated accordingly.
Env
Local zkSync Era in memory node:
era_test_node fork https://sepolia.era.zksync.dev
Command to reproduce
yarn hardhat test --grep "sign with owner: balance should be updated" --nonce 42
Current behavior
The mint function call failed because of a bad signature. Debug logs from the openfort smart account output a different recovered address at every run. This should be visible on the terminal where the local zkSync node runs.
===> RECOVERED SIGNER ADDRESS SHOULD be equal to OWNER
Important note: it works fine on custom networks (e.g sophon)
Expected Behavior
Test pass,
ecrevocer
recovers the correct owner address.Here is the Working Test with ethers
The text was updated successfully, but these errors were encountered: