Replace inline assembly with Solidity in ERC165Checker
See original GitHub issueOne of the few assembly
blocks we have is in ERC165Checker
.
I think we used assembly back then because Solidity didn’t have .staticcall
yet. It should be possible to replace it with .staticcall
and abi.decode
now.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:11 (11 by maintainers)
Top Results From Across the Web
solidity - Modifying simple function with inline assembly
put the initcode binary into memory and call create on it. So let's walk through the steps and see what we need to...
Read more >Inline Assembly — Solidity 0.8.17 documentation
Inline assembly is a way to access the Ethereum Virtual Machine at a low level. ... libraries can enhance the Solidity language without...
Read more >Utilities - OpenZeppelin Docs
Counters : a simple way to get a counter that can only be incremented, decremented or reset. Very useful for ID generation, counting...
Read more >@openzeppelin/contracts | Yarn - Package Manager
A library for secure smart contract development. Build on a solid foundation of community-vetted code. Implementations of standards like ERC20 and ERC721.
Read more >Solidity Tutorial : all about Assembly | by Jean Cvllr - Medium
However, Solidity supports inline assembly in its code. ... A stack is a data structure where you can only add (= PUSH) and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Reported in https://github.com/ethereum/solidity/issues/6901.
ok, i’ll do it over this weekend.