From bfc784d057f719535dd0d4d5e301076ba4ec53a0 Mon Sep 17 00:00:00 2001 From: mgarciate <7695193+mgarciate@users.noreply.github.com> Date: Fri, 24 May 2024 12:58:21 +0200 Subject: [PATCH] Fix #263 Update index.ts allowing rocketpool validators to set a custom fee recipient address (#309) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed #263 @pablomendezroyo @dappnodedev Give some ❤️ to this change 🙏 Generate the web3signer-holesky package with this change is mandatory for publishing rocketpool-testnet. RP changed the fee recipient address when they changed the network from prater to holesky. Right now the smoothing pool address isn't equal to mainnet --- packages/common/src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/utils/index.ts b/packages/common/src/utils/index.ts index a6f34848..9e47c454 100644 --- a/packages/common/src/utils/index.ts +++ b/packages/common/src/utils/index.ts @@ -23,7 +23,7 @@ export function isValidTag(tag: Tag): boolean { export function isFeeRecipientEditable(tag: Tag, requestOrigin?: ActionRequestOrigin): boolean { - if (requestOrigin === "api" && tag === "stader") return true; + if (requestOrigin === "api" && (tag === "stader" || tag === "rocketpool")) return true; return !nonEditableFeeRecipientTags.some((t) => t === tag); }