Skip to content

Commit

Permalink
make functions in lib internal for upgradability safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Viacheslav Zhygulin authored and Viacheslav Zhygulin committed Jul 24, 2024
1 parent f13a87b commit 940c032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BitcoinNetworkEncoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ library BitcoinNetworkEncoder {
Simnet
}

function getBtcBech32Prefix(Network _network) public pure returns (bytes memory) {
function getBtcBech32Prefix(Network _network) internal pure returns (bytes memory) {
if (_network == Network.Mainnet) {
return BTC_BECH32_MAINNET_BYTES;
} else if (_network == Network.Regtest) {
Expand All @@ -36,7 +36,7 @@ library BitcoinNetworkEncoder {
}
}

function getNetworkPrefix(Network _network) public pure returns (string memory) {
function getNetworkPrefix(Network _network) internal pure returns (string memory) {
if (_network == Network.Mainnet) {
return BTC_BECH32_MAINNET;
} else if (_network == Network.Testnet) {
Expand Down

0 comments on commit 940c032

Please sign in to comment.