From 5702d954c6382ca65252c7c33f7838e079a54384 Mon Sep 17 00:00:00 2001 From: Gonzalo Othacehe Date: Mon, 23 Jun 2025 21:08:42 -0300 Subject: [PATCH] fix: change SlotDerivation usage to 'for *' in template and generated code --- contracts/utils/SlotDerivation.sol | 2 +- scripts/generate/templates/SlotDerivation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/utils/SlotDerivation.sol b/contracts/utils/SlotDerivation.sol index df23efa28..74dfbbded 100644 --- a/contracts/utils/SlotDerivation.sol +++ b/contracts/utils/SlotDerivation.sol @@ -16,7 +16,7 @@ pragma solidity ^0.8.20; * contract Example { * // Add the library methods * using StorageSlot for bytes32; - * using SlotDerivation for bytes32; + * using SlotDerivation for *; * * // Declare a namespace * string private constant _NAMESPACE = ""; // eg. OpenZeppelin.Slot diff --git a/scripts/generate/templates/SlotDerivation.js b/scripts/generate/templates/SlotDerivation.js index a00e98167..931c9fc25 100644 --- a/scripts/generate/templates/SlotDerivation.js +++ b/scripts/generate/templates/SlotDerivation.js @@ -17,7 +17,7 @@ pragma solidity ^0.8.20; * contract Example { * // Add the library methods * using StorageSlot for bytes32; - * using SlotDerivation for bytes32; + * using SlotDerivation for *; * * // Declare a namespace * string private constant _NAMESPACE = ""; // eg. OpenZeppelin.Slot