Need to think a bit about the design of this, if naively implemented this means that a contract could be executed in a point in time before it was deployed, but I don't think that's so bad at all. If it is bad, then we'd need to track the deployment block of bytecodes in the cache, which might be hard in the current storage layout.
Worth noting that the contract code is immutable, so there is no risk of reading code in the wrong version.
Need to think a bit about the design of this, if naively implemented this means that a contract could be executed in a point in time before it was deployed, but I don't think that's so bad at all. If it is bad, then we'd need to track the deployment block of bytecodes in the cache, which might be hard in the current storage layout.
Worth noting that the contract code is immutable, so there is no risk of reading code in the wrong version.