Given that ethereum continues to run for few years, is it safe to assume that the smart contract will hold the ether that was deposited into it for years until its triggered to transfer/withdraw the amount ? Also, Can it be triggered after a few years to withdraw the amount of ethers it holds ?
1 Answer
As long as the Ethereum network is working, the Ether stays there unless it's withdrawn. There is no reason for it to not stay there.
That's one of the beautiful parts about smart contracts - they are guaranteed to function as intended "forever" and their functionality is transparent.
So, yes, you can call the function just the same way in a few years as you'd call it today. Of course the environment will get better meanwhile and tools will improve but the contract will stay exactly as it is.
-
Yes, this is what i thought too but wasn't sure about. But, how do soft/hard forks play here ? Can a hard fork put a legacy smart contract unusable if the protocol changes are radically different from the original version? Commented May 21, 2018 at 7:11
-
1Interesting idea. I guess in theory, yes, but that would fight against everything the network stands for. I'd imagine old contracts are somehow at least migrated into the new format, then. Commented May 21, 2018 at 7:13