Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a little cleanup #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
installed_contracts
seed
build

2 changes: 1 addition & 1 deletion contracts/EthPolynomialCurvedToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ contract EthPolynomialCurvedToken is EthBondingCurvedToken {

/// @dev Calculate the integral from 0 to t
/// @param t The number to integrate to
function curveIntegral(uint256 t) internal returns (uint256) {
function curveIntegral(uint256 t) internal view returns (uint256) {
uint256 nexp = exponent + 1;
// Calculate integral of t^exponent
return PRECISION.div(nexp).mul(t ** nexp).div(PRECISION);
Expand Down
2 changes: 1 addition & 1 deletion contracts/PolynomialCurvedToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract PolynomialCurvedToken is BondingCurvedToken {

/// @dev Calculate the integral from 0 to t
/// @param t The number to integrate to
function curveIntegral(uint256 t) internal returns (uint256) {
function curveIntegral(uint256 t) internal view returns (uint256) {
uint256 nexp = exponent + 1;
// Calculate integral of t^exponent
return PRECISION.div(nexp).mul(t ** nexp).div(PRECISION);
Expand Down
3 changes: 2 additions & 1 deletion contracts/TestToken.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

pragma solidity ^0.4.23;

import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol";
Expand All @@ -8,5 +9,5 @@ contract TestToken is MintableToken, DetailedERC20 {
string name,
string symbol,
uint8 decimals
) DetailedERC20(name, symbol, decimals) {}
) DetailedERC20(name, symbol, decimals) public {}
}
Loading