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
If it used CREATE, the same nonce was used at the time of the deployment
Note, btw, that there is a difference between us and Ethereum regarding (2). On Ethereum for CREATE the nonce od the transaction is used. We have a separate "deployment" nonce, which is used for CREATE and is incremented only for deployments
To get the same address on testnet as mainnet:
Note, btw, that there is a difference between us and Ethereum regarding (2). On Ethereum for CREATE the nonce od the transaction is used. We have a separate "deployment" nonce, which is used for CREATE and is incremented only for deployments
You need to ask for the rawNonce for an account (the param is uint256, you just need to pad the address with zeroes to the left) https://github.com/matter-labs/era-system-contracts/blob/3e954a629ad8e01616174bde2218241b360fda0a/contracts/NonceHolder.sol#L35
After you get the value it will be of form 2^128 * deploymentNonce + normalNonce. You just need to do the floored division (BigNumber.div(..) would suffice)
The text was updated successfully, but these errors were encountered: