From 5a2f1c325e4cd8664a464973bb963faa2ca358c6 Mon Sep 17 00:00:00 2001 From: Oleg Bondar Date: Mon, 23 Sep 2024 17:52:46 +0200 Subject: [PATCH] Revert "Feat: add pubkey functions (#36)" This reverts commit 2f9f9caf3dc86391d6c6b74280bef04b873724f5. --- .gitignore | 1 - src/BTCDepositAddressDeriver.sol | 8 -------- src/Deriver.sol | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 83c4244..6e292f6 100644 --- a/.gitignore +++ b/.gitignore @@ -16,5 +16,4 @@ docs/ __pycache__ .vscode -.idea temp/ diff --git a/src/BTCDepositAddressDeriver.sol b/src/BTCDepositAddressDeriver.sol index ac4b75b..6e8ff61 100644 --- a/src/BTCDepositAddressDeriver.sol +++ b/src/BTCDepositAddressDeriver.sol @@ -105,12 +105,4 @@ 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 a82ed3e..17717f9 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,