mudgen / diamond Goto Github PK
View Code? Open in Web Editor NEWInformation about three diamond reference implementations.
License: MIT License
Information about three diamond reference implementations.
License: MIT License
I don't want to bump the reference implementations to Solidity 0.8 myself or use a different Hardhat compiler just for this
I am trying to understand this require
statement:
// an immutable function is a function defined directly in a diamond
require(
_facetAddress != address(this),
"LibDiamondCut: Can't remove immutable function"
);
It is implemented in LibDiamond.removeFunction()
that is being called by replaceFunctions()
and removeFunctions()
in LibDiamond.sol
(e.g. here).
@mudgen Could you please explain how someone could remove/replace a function defined in a diamond?
Or has this check been added as a sanity check according to EIP-2535?
Thank you
I don't want to rely on hardhat-deploy built-in diamond support boilerplates and default steps to deploy and setup the reference implementations; right now, the most accurate steps can be evinced from the test suites (https://github.com/mudgen/diamond-1/blob/master/test/diamondTest.js) and the migrations (https://github.com/mudgen/diamond-1/blob/master/migrations/2_diamond.js)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.