Skip to content

Commit

Permalink
fix: replace functions with storage
Browse files Browse the repository at this point in the history
  • Loading branch information
vbidin committed Jun 21, 2023
1 parent 8455b56 commit c64a24f
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions contracts/ERC20Proxied.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ abstract contract ERC20Proxied is IERC20 {
/*** ERC-20 ***/
/**************************************************************************************************************************************/

string public override name;
string public override symbol;

uint8 public override decimals;

uint256 public override totalSupply;

mapping(address => uint256) public override balanceOf;
Expand All @@ -37,17 +42,6 @@ abstract contract ERC20Proxied is IERC20 {

mapping(address => uint256) public override nonces;


/**************************************************************************************************************************************/
/*** Overriding Functions ***/
/**************************************************************************************************************************************/

function decimals() public view virtual override returns (uint8 decimals_);

function name() public view virtual override returns (string memory name_);

function symbol() public view virtual override returns (string memory symbol_);

/**************************************************************************************************************************************/
/*** External Functions ***/
/**************************************************************************************************************************************/
Expand Down Expand Up @@ -117,7 +111,7 @@ abstract contract ERC20Proxied is IERC20 {
return keccak256(
abi.encode(
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
keccak256(bytes(name())),
keccak256(bytes(name)),
keccak256(bytes("1")),
block.chainid,
address(this)
Expand Down

0 comments on commit c64a24f

Please sign in to comment.