From 521fc8e5424aa0fe3f81ffb8117c9ba7572c12f0 Mon Sep 17 00:00:00 2001 From: David <63450340+PowerStream3604@users.noreply.github.com> Date: Wed, 5 Jun 2024 20:48:32 +0900 Subject: [PATCH] Update Summary to add 2nd Barz article (#336) * Update Summary * Update text --- SUMMARY.md | 1 + .../cutting-diamonds-how-to-make-accounts-awesome.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SUMMARY.md b/SUMMARY.md index 8640ec5..f522b3d 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -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) \ No newline at end of file diff --git a/barz-smart-wallet/cutting-diamonds-how-to-make-accounts-awesome.md b/barz-smart-wallet/cutting-diamonds-how-to-make-accounts-awesome.md index e116d56..775769c 100644 --- a/barz-smart-wallet/cutting-diamonds-how-to-make-accounts-awesome.md +++ b/barz-smart-wallet/cutting-diamonds-how-to-make-accounts-awesome.md @@ -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`.