Do we have to refactor CALLDATALOAD
, CALLDATASIZE
, and CALLDATACOPY
?
#75
-
This is a question for you @IaroslavMazur. We are working on implementing the Don't we also have to refactor My hunch is that yes, we do need to refactor them. But the good news is that they need not contain custom stack inputs, so we don't need companion opcodes (that is, we don't need |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
What exactly do you mean by "refactoring", in the context of the aforementioned opcodes? All of them work with the information about/from the While this will mean less backwards-compatibility for SabVM, I don't know what we could to to address this. It's not like we could have 2 different behaviors for these 3 opcodes, depending on the "perspective" of the caller contract upon the |
Beta Was this translation helpful? Give feedback.
What exactly do you mean by "refactoring", in the context of the aforementioned opcodes?
All of them work with the information about/from the
calldata
of the current execution context, and the only potential problem I've thought about in this regard is if a smart contract deployed to SabVM would try to work with thecalldata
directly - but instead of accounting for MNTs, it'd expect to find just the standardvalue
there (e.g. whenCALLDATALOAD
is being called during the execution of the old-schoolCALL
opcode).While this will mean less backwards-compatibility for SabVM, I don't know what we could to to address this. It's not like we could have 2 different behaviors for these 3 opcodes, d…