mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-23 04:08:09 +00:00
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:
parent
0f5f1dc3fd
commit
ded96c26a3
@ -520,7 +520,7 @@ Here are some solutions to this:
|
||||
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 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:
|
||||
```Solidity
|
||||
DiamondStorage storage ds = diamondStorage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user