Skip to content

Commit

Permalink
Update pragmas to compile with Solidity v0.6.x + add SPDX comments + …
Browse files Browse the repository at this point in the history
…bump version
  • Loading branch information
GNSPS committed Jul 3, 2020
1 parent e93b867 commit 358c9db
Show file tree
Hide file tree
Showing 10 changed files with 5,053 additions and 212 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ The library lets you concatenate, slice and type cast bytes arrays both in memor

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.

_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:
_Version Notes_:

* Version `v0.9.0` now compiles with Solidity compilers `0.5.x` and `0.6.x`.

* 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:

```
$ truffle install [email protected]
```
Expand Down
3 changes: 2 additions & 1 deletion contracts/AssertBytes.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: Unlicense
/*
* @title Solidity Bytes Assertion Library
* @author Gonçalo Sá <[email protected]>
Expand All @@ -6,7 +7,7 @@
* This library is compliant with the test event convention that the Truffle suite uses.
*/

pragma solidity ^0.5.0;
pragma solidity >=0.5.0 <0.7.0;


library AssertBytes {
Expand Down
3 changes: 2 additions & 1 deletion contracts/BytesLib.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// SPDX-License-Identifier: Unlicense
/*
* @title Solidity Bytes Arrays Utils
* @author Gonçalo Sá <[email protected]>
*
* @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
* The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
*/
pragma solidity ^0.5.0;
pragma solidity >=0.5.0 <0.7.0;


library BytesLib {
Expand Down
3 changes: 2 additions & 1 deletion contracts/Migrations.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pragma solidity ^0.5.14;
// SPDX-License-Identifier: Unlicense
pragma solidity >=0.5.0 <0.7.0;


contract Migrations {
Expand Down
2 changes: 1 addition & 1 deletion ethpm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package_name": "bytes",
"version": "0.0.8",
"version": "0.0.9",
"description": "Solidity bytes tightly packed arrays utility library.",
"authors": [
"Gonçalo Sá <[email protected]>"
Expand Down
Loading

0 comments on commit 358c9db

Please sign in to comment.