Skip to content

Commit

Permalink
fixes one syntax issue, adds script to upgrade batch offer implementa…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
rymcol committed Dec 17, 2024
1 parent d4176d7 commit 8c68d0c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions script/batchoffer/batchoffer_upgrade.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pragma solidity ^0.8.0;

import "forge-std/Script.sol";
import {ERC1967Proxy} from "openzeppelin-contracts/proxy/ERC1967/ERC1967Proxy.sol";

import "../../src/batchoffer/BatchOffer.sol";

contract BatchOfferDeploy is Script {
function run() external {
uint256 privateKey = vm.envUint("PRIVATE_KEY");
vm.startBroadcast(privateKey);

// Get Market Config Values from .env
address batchofferProxy = vm.envAddress("BATCHOFFER_PROXY");

BatchOfferCreator offerCreator = new BatchOfferCreator();

BatchOfferCreator batchOfferCreatorProxy = BatchOfferCreator(batchofferProxy);
batchOfferCreatorProxy.upgradeTo(address(offerCreator));
}
}
2 changes: 1 addition & 1 deletion src/token/ERC721/spaces/RareSpaceNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ contract RareSpaceNFT is
burn(_tokenId);
}

function burn(uint256 tokenId) public virtual override onlyTokenOwner(_tokenId) {
function burn(uint256 tokenId) public virtual override onlyTokenOwner(tokenId) {
super.burn(tokenId);
}

Expand Down

0 comments on commit 8c68d0c

Please sign in to comment.