ReentrancyGuard gas optimization (#1996)
* Improve gas efficiency of reentrancyGuard * Add changelog entry * Fix ReentrancyGuard test
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user