Ensuring Contract Callers Implement a Custom Interface in Solidity Using ERC165 without @openzeppelin
Context YourContract invokes a function in TargetContract. Only calls from the YourContract interface should be permitted. Impl
Context YourContract invokes a function in TargetContract. Only calls from the YourContract interface should be permitted. Impl
Just a convention to make a good-looking contract. :3 STRUCTURE FORMAT & LINT Format standard Lint Verify before commit COMMIT RULEs DO use Semantic Commit Messages: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716 DO use Git Branching…
To get interface id, use Remember interfaceId = xor of all selectors (methods) name and param type, don’t care to return type For example: Return zero with empty interface Return…
If you are a smart contract developer, you will need to consider something about the contract: Clean: No unused code, nonsense comment, Well document: Comment to all functions Formatted: Reformat,…
I have some exp with this kind of topic “Dividend Token”. Just share some thoughts What is “Dividend Token”? You should search for more detail. =]] But you can go…
A contract has an infinite internal storage There are 2 limits to practicality: gas costs and the block gas limit. Example Create 5k5 players, read one time https://testnet.bscscan.com/address/0x721ff9e58831b698efd26b9ac744cf8f0aaecbc2#readContract Max Gas Limit is 28,500,000 at…
Config local network Install Ganache Start Ganache and create a new project by point to the truffle-config.js file Config Real network Register a new account on infura.io Create a new…