I have been following Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial (https://www.youtube.com/watch?v=M576WGiDBdQ&t=28658s). instead of copying a ton of code, I'm trying to generalize my question as follows:
consider the following code snippet:
weth=interface.IWeth(SomeAddress)
tx=weth.deposit({"from":account, "value": 0.01*10**18})
I understand that interface.IWeth(SomeAddress)
tells Ethereum virtual machine to create an instance of the contract at SomeAddress ( which I will call SomeContract) with the functionalities of the interface.
I would like to confirm the following:
Does weth
and SomeContract
share the same address?
will the following state changes have the same outcome?
weth.deposit({"from":account, "value": 0.01*10**18})
and
SomeContract.deposit({"from":account, "value": 0.01*10**18})