Automatically merged updates to draft EIP(s) 2535 (#3522)

Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft, Review, or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
This commit is contained in:
Nick Mudge 2021-04-21 18:43:08 -04:00 committed by GitHub
parent 0f5f1dc3fd
commit ded96c26a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,7 +520,7 @@ Here are some solutions to this:
1. Copy internal function code in one facet to the other facet. 1. Copy internal function code in one facet to the other facet.
1. Put common internal functions in a contract that is inherited by multiple facets. 1. Put common internal functions in a contract that is inherited by multiple facets.
1. Put common internal functions in a Solidity library and use the library in facets. 1. Put common internal functions in a Solidity library and use the library in facets.
1. A type safe way to call an external function defined in another facet is to do this: MyOtherFacet(this).myFunction(arg1, arg2) 1. A type safe way to call an external function defined in another facet is to do this: MyOtherFacet(address(this)).myFunction(arg1, arg2)
1. A more gas-efficient way to call an external function defined in another facet is to use `delegatecall`. Here is an example of doing that: 1. A more gas-efficient way to call an external function defined in another facet is to use `delegatecall`. Here is an example of doing that:
```Solidity ```Solidity
DiamondStorage storage ds = diamondStorage(); DiamondStorage storage ds = diamondStorage();