Skip to content

Commit

Permalink
change _release and _withdraw to virtual
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroknots committed Dec 17, 2024
1 parent a5f6b0a commit 40f12b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/SharedLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 40f12b2

Please sign in to comment.