Skip to content

Commit

Permalink
Version Packages (#250)
Browse files Browse the repository at this point in the history
* Version Packages

* contract version in test pulled from package.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dan Oved <[email protected]>
  • Loading branch information
3 people authored Oct 5, 2023
1 parent 90b5ec6 commit 8900ddd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .changeset/tame-keys-mix.md

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zoralabs/zora-1155-contracts

## 2.0.2

### Patch Changes

- 9207e8f: Deployed determinstic proxies and latest versions to mainnet, goerli, base, base goerli, optimism, optimism goerli

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/zora-1155-contracts",
"version": "2.0.1",
"version": "2.0.2",
"repository": "[email protected]:ourzora/creator-contracts.git",
"author": "Iain <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/version/ContractVersionBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated by code; do not manually update
// Last updated on 2023-10-05T15:58:32.256Z
// Last updated on 2023-10-05T20:18:31.254Z
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

Expand All @@ -10,6 +10,6 @@ import {IVersionedContract} from "../interfaces/IVersionedContract.sol";
contract ContractVersionBase is IVersionedContract {
/// @notice The version of the contract
function contractVersion() external pure override returns (string memory) {
return "2.0.1";
return "2.0.2";
}
}
3 changes: 2 additions & 1 deletion test/factory/ZoraCreator1155Factory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ contract ZoraCreator1155FactoryTest is Test {
}

function test_contractVersion() external {
assertEq(factory.contractVersion(), "2.0.0");
string memory package = vm.readFile("./package.json");
assertEq(package.readString(".version"), factory.contractVersion());
}

function test_contractName() external {
Expand Down
3 changes: 2 additions & 1 deletion test/nft/ZoraCreator1155.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ contract ZoraCreator1155Test is Test {
function test_contractVersion() external {
init();

assertEq(target.contractVersion(), "2.0.0");
string memory package = vm.readFile("./package.json");
assertEq(package.readString(".version"), target.contractVersion());
}

function test_assumeLastTokenIdMatches() external {
Expand Down

0 comments on commit 8900ddd

Please sign in to comment.