1

when i creat smart contract i found to address in ganache first sender address,the address which deploy the contract in remix second the created contract address, where come from , what diffirent between two address and How to add balance two addressenter image description here

1 Answer 1

1

the sender address is 1 of (default)10 testing accounts generated by Ganach. These accounts are setup with a default balance of 100 ether.

The contract address is generated at deployment using a combination of deployer's address & nonce. To get a balance to the contract you'd create a transaction sending eth from one of the sender accounts to the contract

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.