4ddcacdcac
Update docs
2020-01-24 13:08:03 -03:00
40f6dbdbde
Merge branch 'master' into fix/enumerable-#1240
2020-01-24 12:46:30 -03:00
81e1bf5d23
Add optimization for removal of last slot
2020-01-24 12:36:59 -03:00
bc1e5b29d9
Add entry on Utils doc
2020-01-24 12:34:47 -03:00
6742bcdbf7
Add changelog entry
2020-01-24 12:28:19 -03:00
305d714ca7
Fix bug in remove, improve tests.
2020-01-24 12:28:09 -03:00
35e2af5a30
Adapt tests to code style, use test-helpers
2020-01-23 19:52:45 -03:00
07c99bc4a8
Rename mock functions
2020-01-23 19:52:31 -03:00
332636da16
Remove comments from mock
2020-01-23 19:27:34 -03:00
b770d89ade
Transactions now return false on failure.
2020-01-23 21:17:49 +00:00
be49c332d2
Failed transactions return false.
2020-01-23 21:07:39 +00:00
79b98a4b54
Created AddressSet factory method.
2020-01-23 20:56:51 +00:00
31e9a54c19
Small comment.
2020-01-23 20:46:52 +00:00
41cb935930
Revert on useless operations.
2020-01-23 20:43:57 +00:00
dfdf794e3c
Removed events.
2020-01-23 20:29:07 +00:00
71d1716acb
Relaxed version pragma to 0.5.0
2020-01-23 20:23:54 +00:00
73abd54cbe
Made private methods internal to allow for overriding ( #2027 )
...
* Made private methods internal to allow for overriding
* Revert package.lock changes.
* Make _move private again
* Expose the ERC1820 registry address
* Add changelog entry
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2020-01-23 16:35:21 -03:00
7d7cbcad14
Fix/improve revert reason #1727 ( #2018 )
...
* adding mock contacts, test code
* adding changes to ERC721.sol per @frangio's comments on original PR #1943
* fix solhint warnings
* Update contracts/token/ERC721/ERC721.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* same revert wording per @frangio's review suggestion
* per @frangio's feedback, changing the inline assembly to accomplish: we want to ignore the first 4 bytes of content, so we should read the length and decrease it by 4, then take the memory location and add 4 to it, then store the new length at the new memory location, then that is the new byte array that we want.
* change revert msg assembly per PR comment by @frangio
* unify revert msg in test code
* fix some failed tests, wording change
* Update contracts/token/ERC721/ERC721.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Update contracts/token/ERC721/ERC721.sol
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* fix test case, revert without reason
* fix 'ERC721ReceiverRevertsMock: Transaction rejected by receiver'
* style change per review by @frangio
* fix revert reason forwarding
* remove duplicate contracts/mocks/ERC721ReceiverRevertsMock.sol per review https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2018\#issuecomment-574381034
* Add changelog entry
* Fix tests
* Make tests more clear
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
Co-authored-by: Nicolás Venturo <nicolas.venturo@gmail.com >
2020-01-23 16:33:09 -03:00
e493fb3e95
Add 'available since' notes. Fixes #2054
2020-01-23 15:26:25 -03:00
8c40a5b275
Create2 feature pending tasks ( #2013 )
...
* Add Create2 library (#1744 )
* feat(contracts): Add Create2 library to use create2 evm opcode
* Upgrade sol-coverage
* Add changelog entry
* Update comments and code style
* Remove create2 helper
* Fix linter error
* Fix truffle dependency
* Fix linter error
* refactor(Create2): Remove _deploy internal function
* test(Create2): test Create2 with inline assembly code
* fix(Create2): Check address returned form create2 instead of codesize of created contract
* refactor(Create2):Add revert reason when Create2 deploy fails (#2062 )
* fix merge with master
* fix test
Co-authored-by: Augusto Lemble <me@augustol.com >
2020-01-23 15:08:54 -03:00
d6698c3bfb
Copy docsite landing to readme ( #2058 )
...
* Copy docsite landing to readme
* Fix code sample
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Update code sample
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-01-23 13:36:21 -03:00
8b50c024d5
Renamed struct to AddressSet.
2020-01-22 15:11:44 +00:00
8379d53545
Merge branch 'master' into fix/enumerable-#1240
2020-01-21 16:35:57 +00:00
3700a342b0
Tweaked contract description.
2020-01-21 09:53:55 +00:00
580bbddb90
Improved comments.
2020-01-21 09:36:51 +00:00
bf335ca6eb
Fixed linting.
2020-01-20 22:54:33 +00:00
ef381e6b50
Moved EnumerableSet to utils.
2020-01-20 22:32:50 +00:00
429cb6df1f
Coded EnumerableSet.
2020-01-20 21:14:49 +00:00
b1e811430a
Upgrade test-environment dependency
2020-01-20 16:32:42 -03:00
06983a2075
add note suggesting reentrancy post ( #2059 )
2020-01-20 16:02:49 -03:00
d037217769
Update README ( #2056 )
...
* Update README to use releases-stability URL
Change https://docs.openzeppelin.com/contracts/api-stability to https://docs.openzeppelin.com/contracts/releases-stability (even though it redirects)
* Update README to include CLI as dev env
Add OpenZeppelin CLI to list of development environments
* Update README to use releases-stability URL
Change https://docs.openzeppelin.com/contracts/api-stability to https://docs.openzeppelin.com/contracts/releases-stability (even though it redirects)
2020-01-16 14:51:06 -03:00
3a02d0df0b
Tweaked the tests to follow oz structure.
2020-01-16 15:39:50 +00:00
410e4f8ab9
Fix link to GSN overview ( #2053 )
...
* Fix link to GSN overview
* Update contracts/GSN/README.adoc
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-01-15 14:44:09 -03:00
e3227bf87a
Drafted test framework.
2020-01-15 16:54:51 +00:00
b74bb85711
Drafted Enumerable.sol.
2020-01-15 09:58:28 +00:00
54d2aec232
issue#1980 ( #2038 )
...
* issue#1980
* fix public to external
2020-01-14 16:18:19 -03:00
d006a750ee
Bump eslint-plugin-import from 2.18.2 to 2.20.0 ( #2051 )
...
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import ) from 2.18.2 to 2.20.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases )
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md )
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.18.2...v2.20.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-14 11:54:34 -03:00
5376e5d349
Bump @openzeppelin/gsn-helpers from 0.2.1 to 0.2.3 ( #2052 )
...
Bumps [@openzeppelin/gsn-helpers](https://github.com/OpenZeppelin/openzeppelin-gsn-helpers ) from 0.2.1 to 0.2.3.
- [Release notes](https://github.com/OpenZeppelin/openzeppelin-gsn-helpers/releases )
- [Commits](https://github.com/OpenZeppelin/openzeppelin-gsn-helpers/compare/v0.2.1...v0.2.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-14 11:54:17 -03:00
e5805c4979
Bump openzeppelin-docs-utils from dc7ce30 to f6b5291 ( #2050 )
...
Bumps [openzeppelin-docs-utils](https://github.com/OpenZeppelin/docs-utils ) from `dc7ce30` to `f6b5291`.
- [Release notes](https://github.com/OpenZeppelin/docs-utils/releases )
- [Commits](dc7ce3006b...f6b5291a2e )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-14 11:54:01 -03:00
73cbd6a38b
fix typo
2020-01-13 15:52:29 -03:00
7014d94108
Fix doc links
2020-01-13 13:46:53 -03:00
62651e8147
Docs overhaul ( #2045 )
...
* Reorder navbar
* Adapt content to new docsite structure, add links
* Fix list
* fix list
* Apply suggestions from code review
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com >
* Update index.adoc
Co-authored-by: Francisco Giordano <frangio.1@gmail.com >
2020-01-13 13:44:34 -03:00
f9650b4cb8
Remove .gitkeep as it's not needed. ( #2046 )
2020-01-07 17:18:28 -03:00
249b5e9a4b
Bump mocha from 6.2.2 to 7.0.0 ( #2042 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) from 6.2.2 to 7.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v6.2.2...v7.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-01-06 14:42:13 -03:00
67a71519d3
[Security] Bump handlebars from 4.1.2 to 4.5.3 ( #2033 )
...
Bumps [handlebars](https://github.com/wycats/handlebars.js ) from 4.1.2 to 4.5.3. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases )
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md )
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2019-12-26 17:41:23 -03:00
ccdeca65a1
make stalebot ignore prs tagged "meta"
2019-12-19 19:13:42 -03:00
fbddf5ba5b
Test common case first ( #2023 )
2019-12-16 16:21:06 -03:00
cf0e71b4ed
Update crowdsales.adoc fix invalid conversion ( #2026 )
...
Code sample for MyCrowdsaleDeployer causes TypeError:
```
browser/MyCrowdsaleDeployer.sol:21:13: TypeError: Invalid type for argument in function call.
Invalid implicit conversion from address to contract IERC20 requested.
address(token) // the token
^------------^
```
Change:
```solidity
address(token) // the token
```
To:
```solidity
token // the token
```
Reported by community member in the forum: https://forum.openzeppelin.com/t/invalid-implicit-conversion-from-address-to-contract-ierc20-requested/1937
2019-12-16 16:15:03 -03:00
73a5903789
Update README.adoc
2019-12-10 15:57:14 -03:00
5d47aa85bc
Correct documentation for isContract check ( #2017 )
...
* Correct documentation for isContract check
* Update Address.sol
* Update Address.sol
* add missing newline before asciidoc list
2019-12-10 13:14:18 -03:00