Make Context abstract (#2229)

This commit is contained in:
Francisco Giordano
2020-05-08 13:02:07 -03:00
committed by GitHub
parent 4cbcaf35e4
commit 0c7b2ec09e

View File

@ -10,11 +10,7 @@ pragma solidity ^0.6.0;
*
* This contract is only required for intermediate, library-like contracts.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}