Complete the code to declare the total supply variable in an ERC-20 token contract.
uint256 public [1];balance instead of totalSupply.owner which is unrelated here.The totalSupply variable holds the total number of tokens in circulation.
Complete the code to declare the transfer function signature in an ERC-20 token contract.
function transfer(address [1], uint256 amount) public returns (bool);spender which is for allowances.owner which is the sender, not recipient.The transfer function sends tokens to the to address.
Fix the error in the approve function signature to match the ERC-20 standard.
function approve(address [1], uint256 amount) public returns (bool);owner which is the token holder, not spender.recipient which is not correct here.The approve function sets allowance for the spender address.
Fill both blanks to complete the balanceOf function signature and return type.
function balanceOf(address [1]) public view returns ([2]);
bool as return type instead of uint256.address as return type which is incorrect.The balanceOf function takes an account address and returns its token balance as a uint256.
Fill all three blanks to complete the transferFrom function signature and return type.
function transferFrom(address [1], address [2], uint256 [3]) public returns (bool);
spender with sender or recipient.The transferFrom function moves amount tokens from sender to recipient.