0

I understand that when deploying a smart contract on the blockchain in Ethereum, it is executed by the EVM. What I don't quite understand is after the contract is on the blockchain and we have an address to interact with it when we call and execute functions, does the EVM execute these commands to change the state of the contract? and is a new instance of the contract with the new state created and stored on a different address on the blockchain?

1
  • You can see Yongjian answer down below. Apart from that I would recommend going through this paper before starting on your SC journey - arxiv.org/pdf/2108.05513.pdf
    – 0xAnon
    Oct 2, 2022 at 4:53

1 Answer 1

0
  1. After the contract is on the blockchain and we have an address to interact with it and when we call and execute functions, the EVM does execute commands to change the state of the contract if the command does change the state of the contract.

  2. No, a new instance of the contract with the new state is not created and stored on a different address on the blockchain when the EVM execute these commands to change the state of the contract. Changing the state does not require redeploying the smart contract, but changing the code does.

1
  • Thank you very much, your answer was very healpful
    – Joel254
    Oct 4, 2022 at 0:31

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.