Skip to content

Commit

Permalink
adds floatingCows storage
Browse files Browse the repository at this point in the history
  • Loading branch information
parseb committed May 20, 2022
1 parent a245c4d commit 46cf20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
5 changes: 5 additions & 0 deletions contracts/CashCow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ contract CashCow is ERC721("Cash Cow Quest", "COWQ"), MiniVest(k) {
mapping(uint256 => Cow) cashCowById;
mapping(uint256 => string) _tokenURIs;

Cow[] public floatingCows;

/// modifiers
modifier timeElapsed(uint256 _id) {
require(_exists(_id), "None Found");
Expand Down Expand Up @@ -110,11 +112,14 @@ contract CashCow is ERC721("Cash Cow Quest", "COWQ"), MiniVest(k) {
_pitchDataURL
);

floatingCows.push(cashCowById[tId]);

tId = tempId;
unchecked {
tempId++;
}


emit NewDealProposed(_projectToken, tId);
} else {
revert TokenTransferFailed(_projectToken, _giveAmountx100 * 10**16);
Expand Down
23 changes: 0 additions & 23 deletions cow-app/app/javascript/application.js

This file was deleted.

0 comments on commit 46cf20a

Please sign in to comment.