Skip to content

Commit

Permalink
revert changelog changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Oct 30, 2023
1 parent a70a355 commit ab59268
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 242 deletions.
8 changes: 0 additions & 8 deletions packages/1155-contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# @zoralabs/zora-1155-contracts

## 2.1.1-premint-api.0

### Patch Changes

- 8395b8e: Fix release code
- aae756b: update package export style
- cf184b3: Update export/import pattern

## 2.1.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/1155-contracts/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-23T15:38:40.148Z
// Last updated on 2023-10-30T19:58:54.830Z
// 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.1.1-premint-api.0";
return "2.2.0";
}
}
8 changes: 4 additions & 4 deletions packages/premint-sdk/src/premint-client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
Address,
} from "viem";
import { foundry } from "viem/chains";
import { describe, it, beforeEach, expect, vi, vitest, afterEach } from "vitest";
import { describe, it, beforeEach, expect, vi, afterEach } from "vitest";
import { parseEther } from "viem";
import { BackendChainNames, PremintClient } from "./premint-client";
import { BackendChainNamesLookup, PremintClient } from "./premint-client";

const chain = foundry;

Expand Down Expand Up @@ -64,7 +64,7 @@ describe("ZoraCreator1155Premint", () => {
.fn()
.mockResolvedValue({ ok: true });

const premint = await premintClient.createPremint({
await premintClient.createPremint({
walletClient,
publicClient,
account: deployerAccount,
Expand All @@ -82,7 +82,7 @@ describe("ZoraCreator1155Premint", () => {
});

expect(premintClient.apiClient.postSignature).toHaveBeenCalledWith({
chain_name: BackendChainNames.ZORA_GOERLI,
chain_name: BackendChainNamesLookup.ZORA_GOERLI,
collection: {
contractAdmin: "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
contractName: "Testing Contract",
Expand Down
8 changes: 4 additions & 4 deletions packages/premint-sdk/src/premint-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type {
import { PremintAPIClient } from "./premint-api-client";
import type { DecodeEventLogReturnType } from "viem";

export const BackendChainNames = {
export const BackendChainNamesLookup = {
ZORA_MAINNET: "ZORA-MAINNET",
ZORA_GOERLI: "ZORA-GOERLI",
} as const;
Expand All @@ -42,19 +42,19 @@ export const networkConfigByChain: Record<number, NetworkConfig> = {
chainId: zora.id,
isTestnet: false,
zoraPathChainName: "zora",
zoraBackendChainName: BackendChainNames.ZORA_MAINNET,
zoraBackendChainName: BackendChainNamesLookup.ZORA_MAINNET,
},
[zoraTestnet.id]: {
chainId: zora.id,
isTestnet: true,
zoraPathChainName: "zgor",
zoraBackendChainName: BackendChainNames.ZORA_GOERLI,
zoraBackendChainName: BackendChainNamesLookup.ZORA_GOERLI,
},
[foundry.id]: {
chainId: foundry.id,
isTestnet: true,
zoraPathChainName: "zgor",
zoraBackendChainName: BackendChainNames.ZORA_GOERLI,
zoraBackendChainName: BackendChainNamesLookup.ZORA_GOERLI,
},
};

Expand Down
Loading

0 comments on commit ab59268

Please sign in to comment.