CRYPTO NEWS

The future of the vast oil and gas industry depends on blockchain

Innovative oil and gas companies are leveraging blockchain, but the industry as a whole may be slow to adopt the technology.

# issue: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?

issue: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? gas required exceeds allowance or always failing transaction. already pass the Compiler, ran and deployed contract, however, when i click at address button secondly to deploy the same contract by calling buytoken function,::Listen

issue: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? gas required exceeds allowance or always failing transaction.

already pass the Compiler, ran and deployed contract, however, when i click at address button secondly to deploy the same contract by calling buytoken function, the issue appeared.

i use openzeppelin contracts, following is my coding:

pragma solidity ^0.5.0;  //import "./ERC20Detailed.sol"; //import "./ERC20.sol"; //import "./ERC20Mintable.sol"; import "./Crowdsale.sol"; import "./TimedCrowdsale.sol"; import "./CappedCrowdsale.sol"; import "./IndividuallyCappedCrowdsale.sol"; import "./MintedCrowdsale.sol"; import "./CapperRoleMock.sol"; /**  * @title NewsToken  * @dev Very simple ERC20 Token with individually CappedCrowdsale  * It is meant to be used in a crowdsale contract.  */ //contract NewsToken is ERC20Mintable,ERC20Detailed {   //  constructor () public ERC20Detailed("NewsToken", "News", 18)      //{     //_mint(msg.sender, 1000000000 * (10 ** uint256(decimals())));        // solhint-disable-previous-line no-empty-blocks //    } //}  /**  * @title Crowdsale  * @dev This is an example of a fully fledged crowdsale.  * The way to add new features to a base crowdsale is by multiple inheritance.  * In this example we are providing following extensions:  * individuallyCappedCrowdsale - sets a max boundary per users for raised funds.  * After adding multiple features it's good practice to run integration tests  * to ensure that subcontracts works together as intended.  */ contract NewsTokenCrowdsale is IndividuallyCappedCrowdsale,CappedCrowdsale,MintedCrowdsale,TimedCrowdsale,CapperRoleMock {     constructor (         uint256 openingTime,         uint256 closingTime,         uint256 rate,         address payable wallet,         uint256 cap,         ERC20Mintable token,         uint256 goal     )         public         Crowdsale(rate, wallet, token)         CappedCrowdsale(cap)         TimedCrowdsale(openingTime, closingTime)         //RefundableCrowdsale(goal)     {         //As goal needs to be met for a successful crowdsale         //the value needs to less or equal than a cap which is limit for accepted funds         //require(goal <= cap, "NewsCrowdSale: goal is greater than cap");      } } 

The future of the vast oil and gas industry depends on blockchain

Shopping cart
There are no products in the cart!
Continue shopping
0