* switch to using Context internally
* add context import
* Add smoke test to make sure enabling GSN support works
* Update test/GSN/ERC721GSNRecipientMock.test.js
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Upgrade truffle
* add missing awaits
* Revert "Upgrade truffle"
This reverts commit f9b0ba9019.
11 lines
340 B
Solidity
11 lines
340 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "../GSN/Context.sol";
|
|
contract ReentrancyAttack is Context {
|
|
function callSender(bytes4 data) public {
|
|
// solhint-disable-next-line avoid-low-level-calls
|
|
(bool success,) = _msgSender().call(abi.encodeWithSelector(data));
|
|
require(success, "ReentrancyAttack: failed call");
|
|
}
|
|
}
|