eos icon indicating copy to clipboard operation
eos copied to clipboard

Protect against contracts importing injected functions

Open spoonincode opened this issue 8 years ago • 2 comments

Injected functions are not intended to be public API -- they are an implementation detail that may change at any time. For example, checktime()'s arguments may change, softfloat may be replaced with hardfloat, etc. Contracts must be forbidden to link against these functions otherwise behavior between producers with different nodeos versions could diverge, or when prior contracts are played back on newer versions of nodeos behavior may be different, etc

spoonincode avatar Mar 25 '18 21:03 spoonincode

Related PR is #1834

andriantolie avatar Mar 27 '18 16:03 andriantolie

confirmed by running the unit tests

dhaneshvb avatar Apr 26 '18 07:04 dhaneshvb