diff --git a/.gitignore b/.gitignore index 6e292f6..83c4244 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ docs/ __pycache__ .vscode +.idea temp/ diff --git a/src/BTCDepositAddressDeriver.sol b/src/BTCDepositAddressDeriver.sol index 6e8ff61..ac4b75b 100644 --- a/src/BTCDepositAddressDeriver.sol +++ b/src/BTCDepositAddressDeriver.sol @@ -105,4 +105,12 @@ contract BTCDepositAddressDeriver { ethAddr ); } + + function getBtcAddress1() public view returns (string memory) { + return btcAddr1; + } + + function getBtcAddress2() public view returns (string memory) { + return btcAddr2; + } } diff --git a/src/Deriver.sol b/src/Deriver.sol index 17717f9..a82ed3e 100644 --- a/src/Deriver.sol +++ b/src/Deriver.sol @@ -84,7 +84,7 @@ library Deriver { bytes memory hrp, address ethAddr ) internal pure returns (string memory) { - (uint256 x, uint256 y) = getPubkeyFromAddress( + (uint256 x, uint256 _y) = getPubkeyFromAddress( p1x, p1y, p2x,