Skip to content

Commit

Permalink
fix fork test for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Nov 6, 2023
1 parent 426d8c3 commit 77121f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions packages/protocol-deployments/package/chainConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ export const chainConfigs = {
MINT_FEE_RECIPIENT: "0xE84DBB2B25F761751231a9D0DAfbdD4dC3aa8252",
PROTOCOL_REWARDS: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
},
[999999999]: {
FACTORY_OWNER: "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
MINT_FEE_RECIPIENT: "0xdae22ce69Afcb7f4bc37D32E267645722949DE0E",
PROTOCOL_REWARDS: "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ async function signAndSaveUpgradeGate({
proxyName,
}: {
turnkeyAccount: LocalAccount;
chainConfigs: {
chainId: number; owner: Address
}[];
chainConfigs: {
chainId: number;
owner: Address;
}[];
proxyName: "upgradeGate";
}) {
const configFolder = path.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ contract ZoraCreator1155PreminterForkTest is ForkDeploymentConfig, Test {
uint256 privateKey,
uint256 chainId
) private pure returns (bytes memory) {
bytes32 digest = ZoraCreator1155Attribution.premintHashedTypeDataV4(premintConfig, contractAddress, chainId);
bytes32 digest = ZoraCreator1155Attribution.premintHashedTypeDataV4(
ZoraCreator1155Attribution.hashPremint(premintConfig),
contractAddress,
ZoraCreator1155Attribution.HASHED_VERSION_1,
chainId
);

// 3. Sign the digest
// create a signature with the digest for the params
Expand Down

0 comments on commit 77121f4

Please sign in to comment.