tangle-network / tangle

Modular restaking infrastructure for developers, restakers, and operators.
https://www.tangle.tools/
GNU General Public License v3.0
51 stars 24 forks source link

Make precompiles callable #620

Closed salman01zp closed 5 months ago

salman01zp commented 5 months ago

Summary of changes Changes introduced in this pull request:

As precompiles are implemented inside the Runtime, they don't have a bytecode, and their account code is empty by default. However in Solidity calling a function of a contract often automatically adds a check that the contract bytecode is non-empty. For that reason a dummy code (0x60006000fd) can be inserted at the precompile address to pass that check.

Reference issue to close (if applicable)

Closes