Skip to content

Commit

Permalink
fix: replace functions with storage
Browse files Browse the repository at this point in the history
vbidin committed Jun 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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;
@@ -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 ***/
/**************************************************************************************************************************************/
@@ -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)

0 comments on commit c64a24f

Please sign in to comment.