OpenZeppelin / openzeppelin-contracts

OpenZeppelin Contracts is a library for secure smart contract development.
https://openzeppelin.com/contracts
MIT License
25.02k stars 11.82k forks source link

i got problem #541

Closed athlona64 closed 7 years ago

athlona64 commented 7 years ago

as required exceeds limit: 3000000. An important gas estimation might also be the sign of a problem in the contract code. Please check loops and be sure you did not sent value to a non payable function (that's also the reason of strong gas estimation)

`pragma solidity ^0.4.11;

/**

/**

} /**

}

/**

}

/**

/**

/**

}

/**

/**

}

/**

/**

}

/**

contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished();

bool public mintingFinished = false;

modifier canMint() { require(!mintingFinished); _; }

/**

/**

contract SampleCrowdsaleToken is MintableToken {

string public constant name = "Sample Crowdsale Token"; string public constant symbol = "SCTV2"; uint8 public constant decimals = 18;

}

/**

}`

maraoz commented 7 years ago

Please don't copy paste your entire codebase here, or at least format it so that it's understandable. Can you please explain what your problem is more clearly in a new issue?

nasiralishigri commented 5 years ago

@maraoz You are right . Just paste error message or the entire code which you have issue.