* Update ReentrancyGuard for Istanbul Hard Fork Changes: Added L37, `_guardCounter = 1;` Rationale: The planned _Istanbul Hard Fork_ will implement [EIP 2200](https://github.com/ethereum/EIPs/blob/e4d4ea348e06c54d0075c400dc7b72430d427ff1/EIPS/eip-2200.md), which implements "net gas metering" for `sstore` operations. If the final value of `_guardCounter` is unchanged relative to the original value of it, a gas refund will be applied and charges for changing the value of `_guardCounter` will effectively not exist. This ends up being cheaper than the current implementation ONLY AFTER Istanbul. Before Istanbul, the added line actually ends up costing more gas. Note that if `_guardCounter` is `0` initially, the initial cost and subsequent refund will both be larger than if `_guardCounter` is `1` initially. Although in both cases, the net gas cost (`gasCost - gasRefund`) are equal, it's better in terms of cost to have both the gas cost and refund smaller, as there is some limit to the percentage of a gas refund that can actually be realized. * Update CHANGELOG.md Added note for change to ReentrancyGuard.sol * Update ReentrancyGuard.sol * Update CHANGELOG.md
| Name |
Last commit
|
Last update |
|---|---|---|
| .circleci | Loading commit data... | |
| .dependabot | Loading commit data... | |
| .github | Loading commit data... | |
| audit | Loading commit data... | |
| contracts | Loading commit data... | |
| docs | Loading commit data... | |
| migrations | Loading commit data... | |
| scripts | Loading commit data... | |
| test | Loading commit data... | |
| .codecov.yml | Loading commit data... | |
| .editorconfig | Loading commit data... | |
| .eslintrc | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .solcover.js | Loading commit data... | |
| .solhint.json | Loading commit data... | |
| CHANGELOG.md | Loading commit data... | |
| CODE_OF_CONDUCT.md | Loading commit data... | |
| CODE_STYLE.md | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| DOCUMENTATION.md | Loading commit data... | |
| GUIDELINES.md | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.md | Loading commit data... | |
| RELEASING.md | Loading commit data... | |
| ethpm.json | Loading commit data... | |
| logo.png | Loading commit data... | |
| netlify.toml | Loading commit data... | |
| package-lock.json | Loading commit data... | |
| package.json | Loading commit data... | |
| truffle-config.js | Loading commit data... |