Skip to content
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
4 changes: 2 additions & 2 deletions contracts/MiniMeToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ contract MiniMeToken is Controlled {

// If the amount being transfered is more than the balance of the
// account the transfer returns false
var previousBalanceFrom = balanceOfAt(_from, block.number);
uint previousBalanceFrom = balanceOfAt(_from, block.number);
if (previousBalanceFrom < _amount) {
return false;
}
Expand All @@ -251,7 +251,7 @@ contract MiniMeToken is Controlled {

// Then update the balance array with the new value for the address
// receiving the tokens
var previousBalanceTo = balanceOfAt(_to, block.number);
uint previousBalanceTo = balanceOfAt(_to, block.number);
require(previousBalanceTo + _amount >= previousBalanceTo); // Check for overflow
updateValueAtNow(balances[_to], previousBalanceTo + _amount);

Expand Down
2 changes: 1 addition & 1 deletion contracts/NEC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract NEC is MiniMeToken {
function burnAndRetrieve(uint256 _tokensToBurn) returns (bool success) {
require(burningEnabled);

var previousBalanceFrom = balanceOfAt(msg.sender, block.number);
uint256 previousBalanceFrom = balanceOfAt(msg.sender, block.number);
if (previousBalanceFrom < _tokensToBurn) {
return false;
}
Expand Down