Skip to content

Commit

Permalink
upgrade TestNet rather than deploy again
Browse files Browse the repository at this point in the history
  • Loading branch information
jac18281828 committed May 9, 2023
1 parent a12c00c commit 2f81e8b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ jobs:
run: |
export DEPLOYED_LIBRARY=$(bin/library.py Constant.sol.json)
echo "Using library ${DEPLOYED_LIBRARY}"
forge script ./script/DeployCommunityBuilder.sol --sig 'deploy()' --libraries ${DEPLOYED_LIBRARY} --slow --broadcast --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY} --etherscan-api-key ${ETHERSCAN_API_KEY} --verify || true
forge script ./script/DeployCollective.sol --sig 'deploy()' --libraries ${DEPLOYED_LIBRARY} --slow --broadcast --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY} --etherscan-api-key ${ETHERSCAN_API_KEY} --verify || true
BUILDER_ADDRESS=0x4ba7E0dc43180Cb10EF53FF9Da923E02f459Ec9F forge script ./script/DeployCommunityBuilder.sol --sig 'upgrade()' --libraries ${DEPLOYED_LIBRARY} --slow --broadcast --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY}
BUILDER_ADDRESS=0xe1a13ea37F2BFE35B612799fcf9eBD43efA00B87 forge script ./script/DeployCollective.sol --sig 'upgrade()' --libraries ${DEPLOYED_LIBRARY} --slow --broadcast --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Using the Remote module in VSCode simply reopen the project in it's container.

### Foundry

This project is using [Foundry](https://github.com/foundry-rs/foundry). Development is enabled with the [Foundry Development](https://github.com/collectivexyz/foundry) container
This project is using [Foundry](https://github.com/foundry-rs/foundry). Development is enabled with the [Foundry Development](https://github.com/collectivexyz/foundry) container

### JavaScript API

Expand Down
2 changes: 1 addition & 1 deletion contracts/Constant.sol
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ library Constant {
uint256 public constant MAXIMUM_REBATE_BASE_FEE = 200 gwei;

/// software versions
uint32 public constant CURRENT_VERSION = 3;
uint32 public constant CURRENT_VERSION = 4;

/// @notice Compute the length of any string in solidity
/// @dev This method is expensive and is used only for validating
Expand Down
4 changes: 2 additions & 2 deletions site/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ _____________
Contract Ethereum Address Version Description
===================== ========================================== =========== ===========================
`Constant`_ 0xD5DA9B812806E080948476A801d2004f3305E63F 0.9.8 Constant library
`CommunityBuilder`_ 0x4ba7E0dc43180Cb10EF53FF9Da923E02f459Ec9F LATEST CommunityBuilder Factory
`GovernanceBuilder`_ 0xe1a13ea37F2BFE35B612799fcf9eBD43efA00B87 LATEST Governance Contract Builder
`CommunityBuilder`_ 0x4ba7E0dc43180Cb10EF53FF9Da923E02f459Ec9F LATEST CommunityBuilder Factory
`GovernanceBuilder`_ 0xe1a13ea37F2BFE35B612799fcf9eBD43efA00B87 LATEST Governance Contract Builder
===================== ========================================== =========== ===========================


Expand Down
4 changes: 2 additions & 2 deletions test/mock/MockERC721Enum.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract MockERC721EnumTest is Test {
assertEq(erc721.tokenOfOwnerByIndex(_nextowner, 0), _tokenId3);
}

function testFailOwnerInvalidIndex(uint256 index) public {
function testFailOwnerInvalidIndex(uint256 index) public view {
vm.assume(index > 2);
erc721.tokenOfOwnerByIndex(_owner, index);
}
Expand All @@ -50,7 +50,7 @@ contract MockERC721EnumTest is Test {
assertEq(erc721.tokenByIndex(3), _tokenId4);
}

function testFailTokenGlobalInvalidIndex(uint256 index) public {
function testFailTokenGlobalInvalidIndex(uint256 index) public view {
vm.assume(index > 3);
erc721.tokenByIndex(index);
}
Expand Down

0 comments on commit 2f81e8b

Please sign in to comment.