GSN compatibility (#1880)
* 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.
This commit is contained in:
committed by
Francisco Giordano
parent
4070719ff5
commit
89835152ce
@ -1,9 +1,10 @@
|
||||
pragma solidity ^0.5.2;
|
||||
|
||||
contract ReentrancyAttack {
|
||||
import "../GSN/Context.sol";
|
||||
contract ReentrancyAttack is Context {
|
||||
function callSender(bytes4 data) public {
|
||||
// solhint-disable-next-line avoid-low-level-calls
|
||||
(bool success,) = msg.sender.call(abi.encodeWithSelector(data));
|
||||
require(success);
|
||||
(bool success,) = _msgSender().call(abi.encodeWithSelector(data));
|
||||
require(success, "ReentrancyAttack: failed call");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user