From f492c600836c626b2bcca54f073741b38748e845 Mon Sep 17 00:00:00 2001 From: Viacheslav Zhygulin Date: Thu, 20 Jun 2024 18:55:30 +0300 Subject: [PATCH] downgrade solidity for compatibility --- script/AddressReaderWriter.s.sol | 2 +- script/Deploy.s.sol | 2 +- script/GetBtcAddr.s.sol | 2 +- script/SetSeed.s.sol | 2 +- src/BTCDepositAddressDeriver.sol | 2 +- src/Bech32m.sol | 2 +- src/Deriver.sol | 2 +- src/Tools.sol | 2 +- test/BTCDepositAddressDeriver.t.sol | 2 +- test/Bech32m.t.sol | 2 +- test/Deriver.t.sol | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/script/AddressReaderWriter.s.sol b/script/AddressReaderWriter.s.sol index d513aa5..413c70a 100644 --- a/script/AddressReaderWriter.s.sol +++ b/script/AddressReaderWriter.s.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Script} from "forge-std/Script.sol"; import {Tools} from "../src/Tools.sol"; diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 648f21c..0a048fe 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import { Script } from "forge-std/Script.sol"; import {console} from "forge-std/console.sol"; diff --git a/script/GetBtcAddr.s.sol b/script/GetBtcAddr.s.sol index 27043df..afdac1d 100644 --- a/script/GetBtcAddr.s.sol +++ b/script/GetBtcAddr.s.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Script} from "forge-std/Script.sol"; import {console} from "forge-std/console.sol"; diff --git a/script/SetSeed.s.sol b/script/SetSeed.s.sol index ccd2d3d..4f5a6b8 100644 --- a/script/SetSeed.s.sol +++ b/script/SetSeed.s.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Script} from "forge-std/Script.sol"; import {console} from "forge-std/console.sol"; diff --git a/src/BTCDepositAddressDeriver.sol b/src/BTCDepositAddressDeriver.sol index eb5f682..88f2818 100644 --- a/src/BTCDepositAddressDeriver.sol +++ b/src/BTCDepositAddressDeriver.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Deriver} from "./Deriver.sol"; import {Bech32m} from "./Bech32m.sol"; diff --git a/src/Bech32m.sol b/src/Bech32m.sol index 48072e9..a94664b 100644 --- a/src/Bech32m.sol +++ b/src/Bech32m.sol @@ -3,7 +3,7 @@ // 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.25; +pragma solidity ^0.8.24; error EncodingIsUnknown(); diff --git a/src/Deriver.sol b/src/Deriver.sol index 66cd2c2..dea32bb 100644 --- a/src/Deriver.sol +++ b/src/Deriver.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {EllipticCurve} from "../lib/elliptic-curve-solidity/contracts/EllipticCurve.sol"; diff --git a/src/Tools.sol b/src/Tools.sol index f2c2e9a..6d9a810 100644 --- a/src/Tools.sol +++ b/src/Tools.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Script} from "forge-std/Script.sol"; import {Strings} from "@openzeppelin/contracts/utils/Strings.sol"; diff --git a/test/BTCDepositAddressDeriver.t.sol b/test/BTCDepositAddressDeriver.t.sol index 72b949f..3ca2eed 100644 --- a/test/BTCDepositAddressDeriver.t.sol +++ b/test/BTCDepositAddressDeriver.t.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {console} from "forge-std/console.sol"; import {Test} from "forge-std/Test.sol"; diff --git a/test/Bech32m.t.sol b/test/Bech32m.t.sol index 97b987a..242172f 100644 --- a/test/Bech32m.t.sol +++ b/test/Bech32m.t.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Test, console} from "forge-std/Test.sol"; import {Bech32m} from "../src/Bech32m.sol"; diff --git a/test/Deriver.t.sol b/test/Deriver.t.sol index c9dd218..4dab575 100644 --- a/test/Deriver.t.sol +++ b/test/Deriver.t.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.25; +pragma solidity ^0.8.24; import {Test, console} from "forge-std/Test.sol"; import {Deriver} from "../src/Deriver.sol";