Hey everyone did u know how to get same address of smart contract on bsc. And eth chain both
Jul 26, 2023, 6:34 PM
Which parameter I have to keep constant while deploying contract ?
Jul 26, 2023, 6:34 PM
Same eoa,same nonce
Jul 26, 2023, 6:55 PM
But transaction failed π
Aug 3, 2023, 1:35 PM
That have nothing to do with getting same address
Aug 3, 2023, 2:19 PM
I tried without editing nonce
Then it deployed
As I change nonce on bsc testnet itβs failed
Soo there is something related to nonce
I guess
Aug 3, 2023, 2:26 PM
What do you mean "editing nonce"?
You cannot use a nonce which is lower than current nonce of the account
Also, even if its a future nonce, all transactions between that nonce and current nonce must be executed before reaching the set nonce
Aug 3, 2023, 2:33 PM
Means changing nonce
Of transaction
I use new account for that
Example I add a account on metamask nonce started with 0 so I deployed with nonce 0 then again I have to set nonce 0 or I have to do the other contract deployment with nonce 1 ?
Can u explain me lit bit
Aug 3, 2023, 4:42 PM
Nonce is unique per chain. If you make a tx on ethereum on a fresh account, your nonce will be increased to 1, but it will be 0 on all other evm chains
Aug 3, 2023, 5:51 PM
If you deploy a contract with nonce 15 and you want the same contract address on another chain, you do 14 tx + deploy, address will be the same
Aug 3, 2023, 7:49 PM
how can i set the nonce for my deploying contract?
Aug 3, 2023, 8:08 PM
By doing tx.
You set the nonce on the account, not the contract.
The combination of account + nonce creates the contract address
You set the nonce on the account, not the contract.
The combination of account + nonce creates the contract address
I did a proof of concept dome months ago back there somewhere, try to search
It was someone with lost funds on eth but there was one way to recover those with the collaboration of the deployer
Aug 3, 2023, 8:20 PM
Interesting π€
Aug 3, 2023, 8:22 PM
But account will changes right ?? Have to keep same account means same deployer address also ?
Aug 3, 2023, 8:59 PM
Same deployer address
Aug 4, 2023, 12:26 AM