How can fix in smart contract written in solidity?

TypeError: Invalid type for argument in function call. Invalid implicit conversion from address to address payable requested. selfdestruct(admin); pragma solidity >=0.4.21 <0.6.0; import “./DappToken.sol”; contract DappTokenSale{ address admin; DappToken public tokenContract; uint256 public tokenPrice; uint256 public tokensSold; event Sell(address _buyer, uint256 _amount); constructor(DappToken _tokenContract, uint256 _tokenPrice) public { //Assign an admin admin = msg.sender; //token…

So can I simply send ether to a contract as if it’s a regular wallet, even without payable function?

Are contracts really that different? I guess in theory every contract should have a private key somewhere + it should be possible to send ether to it? Unless geth/parity and other parts of the evm don’t have functions specifically checking if every blockchain transfer is wallet vs contract and hence rejecting ether if it’s send…

REMIX debugger invalid opcode before JUMP

I am testing simple ERC20 token creation with the following in remix: pragma solidity ^0.5.0; import “https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.4.0/contracts/token/ERC20/ERC20.sol”; import “https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.4.0/contracts/token/ERC20/ERC20Detailed.sol”; contract TestToken is ERC20, ERC20Detailed { constructor () public ERC20Detailed(“TestToken”, “TKN”, 18) { _mint(msg.sender, 1000000 * (10 ** uint256(decimals()))); } } I launch the contract and debug, but prior to every JUMP opcode, i receive an…

Insufficients funds to Deploy Contract on Test Network

Here are my files on github, https://github.com/ArtieLadie/gas_limit https://github.com/ArtieLadie/gas_limit/blob/master/deploy.js sets gas limit here, async function deployContract(web3, contract, sender) { let Voter = new web3.eth.Contract(contract.abi); let bytecode = ‘0x’ + contract.evm.bytecode.object; let gasEstimate = await web3.eth.estimateGas({data: bytecode}); This is the account I am using to deploy contract. It has 18 ether. https://rinkeby.etherscan.io/address/0xf8f07fc5301d4644ab33f59496a03363233b8f79 When I deploy contract, I…