From 40f12b2ba6a7f0f33a9b8207370e596634cb668a Mon Sep 17 00:00:00 2001 From: zeroknots Date: Tue, 17 Dec 2024 08:47:02 +0700 Subject: [PATCH] change _release and _withdraw to virtual --- src/lib/SharedLogic.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/SharedLogic.sol b/src/lib/SharedLogic.sol index 87a32b6..b77e3d6 100644 --- a/src/lib/SharedLogic.sol +++ b/src/lib/SharedLogic.sol @@ -32,7 +32,7 @@ contract SharedLogic is ConstructorLogic { * @param amount The amount of tokens to transfer. * @return Whether the transfer was successful. */ - function _release(address from, address to, uint256 id, uint256 amount) internal returns (bool) { + function _release(address from, address to, uint256 id, uint256 amount) internal virtual returns (bool) { assembly ("memory-safe") { // Compute the sender's balance slot using the master slot seed. mstore(0x20, _ERC6909_MASTER_SLOT_SEED) @@ -94,7 +94,7 @@ contract SharedLogic is ConstructorLogic { * @param amount The amount of tokens to burn and withdraw. * @return Whether the withdrawal was successful. */ - function _withdraw(address from, address to, uint256 id, uint256 amount) internal returns (bool) { + function _withdraw(address from, address to, uint256 id, uint256 amount) internal virtual returns (bool) { // Set reentrancy guard due to external token transfers. _setReentrancyGuard();