Skip to content

Commit

Permalink
remove stuff added by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
vfat0 committed Sep 8, 2021
1 parent 172b167 commit 4695559
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions contracts/AdventureParty.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,6 @@ contract AdventureParty is Ownable, IERC721Receiver {
}
}

function executeMany(uint[] memory summonerIDs, address target, string memory func) public onlyOwner {
for (uint i = 0; i < summonerIDs.length; i++) {
target.delegatecall(abi.encodeWithSignature(func, summonerIDs[i]));
}
}

function executeAll(address target, string memory func) public onlyOwner {
executeMany(adventurers.values(), target, func);
}

function claimGoldAll() external {
executeAll(address(rarityGold), "claim(uint256)");
}

function levelUpAll() external {
for (uint i = 0; i < adventurers.length(); i++) {
uint adventurer = adventurers.at(i);
Expand Down

0 comments on commit 4695559

Please sign in to comment.