-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Describe the bug
Currently when deploying a contract with a tempo transaction and a passkey, the returned contract address is incorrect in the transaction receipt. Doesn't matter how the contract is deployed; manually with ox and send raw transaction, using viem's deployContract, or manually with sendTransaction.
On tempo, the deployed address is computed from the signer and nonce + 1 instead of just the signer and its current nonce (reverse engineered the off-by-one error). Currently the RPC returns the contractAddress computed from what would be correct on ethereum, however trying to interact with the contract fails due to it being deployed on the next address, instead of the current one
Steps to reproduce
- Deploy a contract
- Observe the contract address in the transaction receipt, it is empty on the explorer as well as
eth_getCode - Manually compute the next contract address (
nonce + 1at the time of deployment) and observe both the explorer andeth_getCodecorrectly shows the deployment
What version/commit are you on?
Not important as I believe this is an upstream bug in the testnet.
Code of Conduct
- I agree to follow the Code of Conduct
Metadata
Metadata
Assignees
Labels
No labels