From 8f26e5d0817266d7fa3733a8082c98465117d946 Mon Sep 17 00:00:00 2001 From: Viacheslav Zhygulin Date: Thu, 20 Jun 2024 11:38:59 +0300 Subject: [PATCH] update licenses and solidity versions --- script/AddressReaderWriter.s.sol | 2 ++ script/Deploy.s.sol | 2 +- src/Bech32m.sol | 1 + src/Deriver.sol | 3 ++- src/Tools.sol | 2 ++ test/BTCDepositAddressDeriver.t.sol | 2 +- test/Bech32m.t.sol | 5 +++-- test/Deriver.t.sol | 5 +++-- 8 files changed, 15 insertions(+), 7 deletions(-) diff --git a/script/AddressReaderWriter.s.sol b/script/AddressReaderWriter.s.sol index a4a1336..d513aa5 100644 --- a/script/AddressReaderWriter.s.sol +++ b/script/AddressReaderWriter.s.sol @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + pragma solidity ^0.8.25; import {Script} from "forge-std/Script.sol"; diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 26b8003..648f21c 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -1,4 +1,4 @@ -// SPDX-LICENSE-IDENTIFIER: MIT +// SPDX-License-Identifier: MIT pragma solidity ^0.8.25; diff --git a/src/Bech32m.sol b/src/Bech32m.sol index f046087..48072e9 100644 --- a/src/Bech32m.sol +++ b/src/Bech32m.sol @@ -2,6 +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.25; error EncodingIsUnknown(); diff --git a/src/Deriver.sol b/src/Deriver.sol index f819110..66cd2c2 100644 --- a/src/Deriver.sol +++ b/src/Deriver.sol @@ -1,4 +1,5 @@ -// SPDX-License-Identifier: UNLICENSED +// SPDX-License-Identifier: MIT + pragma solidity ^0.8.25; import {EllipticCurve} from "../lib/elliptic-curve-solidity/contracts/EllipticCurve.sol"; diff --git a/src/Tools.sol b/src/Tools.sol index 51632b3..f2c2e9a 100644 --- a/src/Tools.sol +++ b/src/Tools.sol @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: MIT + pragma solidity ^0.8.25; import {Script} from "forge-std/Script.sol"; diff --git a/test/BTCDepositAddressDeriver.t.sol b/test/BTCDepositAddressDeriver.t.sol index 462e593..a8903e8 100644 --- a/test/BTCDepositAddressDeriver.t.sol +++ b/test/BTCDepositAddressDeriver.t.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.19; +pragma solidity ^0.8.25; 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 cf58ae8..97b987a 100644 --- a/test/Bech32m.t.sol +++ b/test/Bech32m.t.sol @@ -1,5 +1,6 @@ -// Solidity Version: ^0.8.13 -pragma solidity ^0.8.19; +// SPDX-License-Identifier: MIT + +pragma solidity ^0.8.25; 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 4b0c2ac..c9dd218 100644 --- a/test/Deriver.t.sol +++ b/test/Deriver.t.sol @@ -1,5 +1,6 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.13; +// SPDX-License-Identifier: MIT + +pragma solidity ^0.8.25; import {Test, console} from "forge-std/Test.sol"; import {Deriver} from "../src/Deriver.sol";