1113
October 6, 2019, 2:36am
1
Please help me.
Point out the error
Ropsten
Fail: 0x0bff530f9a0f67d77e87e7cbd02d53f94c997fd7781ebdcff13f8c8098078a20
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.3.0/contracts/token/ERC20/ERC20Detailed.sol";
contract Token is ERC20, ERC20Detailed {
constructor () public ERC20Detailed("YeShangBin", "SBC", 8) {
_mint(msg.sender, 100000000 * (10 ** uint256(decimals())));
}
}
1 Like
Hi @1113 ,
Welcome to the community
I was able to deploy the same token to Ropsten using Remix:
https://ropsten.etherscan.io/token/0x4ebcad543a5eb1938052734c5da733ff31316ae7
Checking the failed transaction, there wasn’t enough gas. Gas limit shows as 41,797.
https://ropsten.etherscan.io/tx/0x0bff530f9a0f67d77e87e7cbd02d53f94c997fd7781ebdcff13f8c8098078a20
The successful transaction had a gas limit of 1,039,756.
https://ropsten.etherscan.io/tx/0x6b06ce5393c21ca1cfbd4260a9c9f2bc4262092ef80c10306e1f3cde2d3d0ecf
Can you give any more details on how this occurred?
There was an issue with Ropsten earlier this week since the Istanbul hard fork, Ropsten testnet post Istanbul
You may want to try a different testnet such as Rinkeby, Kovan or Goerli.