Skip to content

Commit 358c9db

Browse files
committed
Update pragmas to compile with Solidity v0.6.x + add SPDX comments + bump version
1 parent e93b867 commit 358c9db

File tree

10 files changed

+5053
-212
lines changed

10 files changed

+5053
-212
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ The library lets you concatenate, slice and type cast bytes arrays both in memor
88

99
Given this library has an all-internal collection of methods it doesn't make sense having it reside in the mainnet. Instead it will only be available in EPM as an installable package.
1010

11-
_Note_: Since version `v0.0.7` the library will only compile on Solidity versions `>0.4.22` so, if you need `v0.4.x` support for your project just use `v0.0.6` of the library with:
11+
_Version Notes_:
12+
13+
* Version `v0.9.0` now compiles with Solidity compilers `0.5.x` and `0.6.x`.
14+
15+
* Since version `v0.0.7` the library will only compile on Solidity versions `>0.4.22` so, if you need `v0.4.x` support for your project just use `v0.0.6` of the library with:
16+
1217
```
1318
$ truffle install [email protected]
1419
```

contracts/AssertBytes.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: Unlicense
12
/*
23
* @title Solidity Bytes Assertion Library
34
* @author Gonçalo Sá <[email protected]>
@@ -6,7 +7,7 @@
67
* This library is compliant with the test event convention that the Truffle suite uses.
78
*/
89

9-
pragma solidity ^0.5.0;
10+
pragma solidity >=0.5.0 <0.7.0;
1011

1112

1213
library AssertBytes {

contracts/BytesLib.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
// SPDX-License-Identifier: Unlicense
12
/*
23
* @title Solidity Bytes Arrays Utils
34
* @author Gonçalo Sá <[email protected]>
45
*
56
* @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
67
* The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
78
*/
8-
pragma solidity ^0.5.0;
9+
pragma solidity >=0.5.0 <0.7.0;
910

1011

1112
library BytesLib {

contracts/Migrations.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
pragma solidity ^0.5.14;
1+
// SPDX-License-Identifier: Unlicense
2+
pragma solidity >=0.5.0 <0.7.0;
23

34

45
contract Migrations {

ethpm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"package_name": "bytes",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Solidity bytes tightly packed arrays utility library.",
55
"authors": [
66
"Gonçalo Sá <[email protected]>"

0 commit comments

Comments
 (0)