Skip to content

Commit

Permalink
Prefix internal function with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuba committed May 10, 2024
1 parent cf23ff9 commit 88bcb51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions solidity/contracts/BitcoinRedeemer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract BitcoinRedeemer is Ownable2StepUpgradeable, IReceiveApproval {
/// Attempted to call receiveApproval with empty data.
error EmptyExtraData();

/// Attempted to call redeemSharesAndUnmint with unexpected tBTC token owner.
/// Attempted to call _redeemSharesAndUnmint with unexpected tBTC token owner.
error UnexpectedTbtcTokenOwner();

/// Reverts if the redeemer is not the deposit owner.
Expand Down Expand Up @@ -111,7 +111,7 @@ contract BitcoinRedeemer is Ownable2StepUpgradeable, IReceiveApproval {
if (msg.sender != address(stbtc)) revert CallerNotAllowed(msg.sender);
if (extraData.length == 0) revert EmptyExtraData();

redeemSharesAndUnmint(from, amount, extraData);
_redeemSharesAndUnmint(from, amount, extraData);
}

/// @notice Updates TBTCVault contract address.
Expand Down Expand Up @@ -151,7 +151,7 @@ contract BitcoinRedeemer is Ownable2StepUpgradeable, IReceiveApproval {
/// @param tbtcRedemptionData Additional data required for the tBTC redemption.
/// See `redemptionData` parameter description of `Bridge.requestRedemption`
/// function.
function redeemSharesAndUnmint(
function _redeemSharesAndUnmint(
address owner,
uint256 shares,
bytes calldata tbtcRedemptionData
Expand Down

0 comments on commit 88bcb51

Please sign in to comment.