ReentrancyGuard gas optimization (#1996)

* Improve gas efficiency of reentrancyGuard

* Add changelog entry

* Fix ReentrancyGuard test
This commit is contained in:
Nicolás Venturo
2019-11-23 20:44:45 -03:00
committed by GitHub
parent 4237eea7d8
commit 28b95ef5be
3 changed files with 21 additions and 12 deletions

View File

@ -14,7 +14,7 @@ contract('ReentrancyGuard', function () {
it('should not allow remote callback', async function () {
const attacker = await ReentrancyAttack.new();
await expectRevert(
this.reentrancyMock.countAndCall(attacker.address), 'ReentrancyGuard: reentrant call');
this.reentrancyMock.countAndCall(attacker.address), 'ReentrancyAttack: failed call');
});
// The following are more side-effects than intended behavior: