This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I am getting the above error in Remix. I am trying to make a wrapped ETH. I am using compiler 0.5.5 commit.47a71e8f.Emscripten.clang. My code is
pragma solidity ^0.5.5
import '
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol
'
contract WTFUEL is ERC20 {
constructor() ERC20("Wrapped Binance Coin", "WBNB") public {}
function mint() external payable {
_mint(msg.sender, msg.value)
}
function burn(uint amount) external {
msg.sender.transfer(amount)
_burn(msg.sender, amount);
}
}
Any help will be much appreciated!
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ethdev/comm...