浏览代码

Make Context abstract (#2229)

Francisco Giordano 5 年之前
父节点
当前提交
0c7b2ec09e
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      contracts/GSN/Context.sol

+ 1 - 5
contracts/GSN/Context.sol

@@ -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;
     }