Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mkl- committed Jun 20, 2024
1 parent 436e2fe commit 0b68d38
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {console} from "forge-std/console.sol";
import {BTCDepositAddressDeriver} from "../src/BTCDepositAddressDeriver.sol";
import {Tools} from "../src/Tools.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {AddressReaderWriter} from "../src/AddressReaderWriter.sol";
import {AddressReaderWriter} from "./AddressReaderWriter.s.sol";

contract Deploy is Script, AddressReaderWriter {
function run() external returns (BTCDepositAddressDeriver) {
Expand Down
2 changes: 1 addition & 1 deletion script/GetBtcAddr.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {Script} from "forge-std/Script.sol";
import {console} from "forge-std/console.sol";
import {BTCDepositAddressDeriver} from "../src/BTCDepositAddressDeriver.sol";
import {Tools} from "../src/Tools.sol";
import {AddressReaderWriter} from "../src/AddressReaderWriter.sol";
import {AddressReaderWriter} from "./AddressReaderWriter.s.sol";

contract GetBtcAddr is Script, AddressReaderWriter {
function run() external {
Expand Down
3 changes: 1 addition & 2 deletions script/SetSeed.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {console} from "forge-std/console.sol";
import {BTCDepositAddressDeriver} from "../src/BTCDepositAddressDeriver.sol";
import {Tools} from "../src/Tools.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {AddressReaderWriter} from "../src/AddressReaderWriter.sol";
import {AddressReaderWriter} from "./AddressReaderWriter.s.sol";
import {console} from "forge-std/console.sol";

contract SetSeed is Script, AddressReaderWriter {
Expand Down Expand Up @@ -45,7 +45,6 @@ contract SetSeed is Script, AddressReaderWriter {
BTCDepositAddressDeriver deriver = BTCDepositAddressDeriver(
contractAddress
);
console.log("deriver", address(deriver));

// set validators' pubkeys and network prefix
vm.startBroadcast();
Expand Down
2 changes: 1 addition & 1 deletion src/Bech32m.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// https://github.com/gregdhill/bech32-sol/blob/master/src/Bech32.sol
// based on https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki
// https://github.com/sipa/bech32/blob/master/ref/python/segwit_addr.py
pragma solidity ^0.8.18;
pragma solidity ^0.8.25;

error EncodingIsUnknown();

Expand Down
2 changes: 1 addition & 1 deletion src/Deriver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.18;
pragma solidity ^0.8.25;

import {EllipticCurve} from "../lib/elliptic-curve-solidity/contracts/EllipticCurve.sol";

Expand Down

0 comments on commit 0b68d38

Please sign in to comment.