Skip to content

Commit

Permalink
Update Summary to add 2nd Barz article (#336)
Browse files Browse the repository at this point in the history
* Update Summary

* Update text
  • Loading branch information
PowerStream3604 authored Jun 5, 2024
1 parent cea18c3 commit 521fc8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@
- [FAQ](wallet-core/faq.md)
- [Barz - Smart Wallet](barz-smart-wallet/barz-smart-wallet.md)
- [Introducing Barz. TrustWallet's Smart Wallet Solution](barz-smart-wallet/introducing-barz-trustwallet-smart-wallet-solution.md)
- [Cutting Diamonds: How to make Accounts Awesome](barz-smart-wallet/cutting-diamonds-how-to-make-accounts-awesome.md)
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ if (_action == IDiamondCut.FacetCutAction.Add) {

Although we understood that this was the default behavior of Diamonds which is updating each function selector’s mapping to facet address value, we tried to look for ways tailored to the Account to reduce the gas consumption as much as possible.

During this time, author of [EIP-2535](https://eips.ethereum.org/EIPS/eip-2535) and I had a discussion on how we could further optimize the gas consumption during the `diamondCut()` for default facets, and we came up with an interesting idea of having a pre-existing entity that holds the values for the Diamond’s functionSelector <> Facet mapping.
During this time, [Nick(Author of EIP-2535 Diamonds)](https://x.com/mudgen) and I had a discussion on how we could further optimize the gas consumption during the `diamondCut()` for default facets, and we came up with an interesting idea of having a pre-existing entity that holds the values for the Diamond’s functionSelector <> Facet mapping.

After having this interesting idea, our team started the implementation of a standalone contract that provides the default mapping value of the diamond, and named it `DefaultFallbackHandler`.

Expand Down

0 comments on commit 521fc8e

Please sign in to comment.