From 940c0328e638292d05cb54d5c669c5b9f8467ac1 Mon Sep 17 00:00:00 2001 From: Viacheslav Zhygulin Date: Wed, 24 Jul 2024 13:59:39 +0300 Subject: [PATCH] make functions in lib internal for upgradability safety --- src/BitcoinNetworkEncoder.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BitcoinNetworkEncoder.sol b/src/BitcoinNetworkEncoder.sol index 29cb6b7..b30983d 100644 --- a/src/BitcoinNetworkEncoder.sol +++ b/src/BitcoinNetworkEncoder.sol @@ -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) { @@ -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) {