Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reservoir Relay] Change default authorizedMinter address from EOA to router #147

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export const ERC721CV2_EMPTY_LIST = 4;
// Mainnet, Polygon, Base
export const ERC721CMRoyaltiesCloneFactoryContract = '0x7cEEd7215D71393d56966dA48C5727851326e101';

export const RESERVOIR_RELAYER_EOA = '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF';
export const RESERVOIR_RELAYER_ROUTER = '0x2f5D6B76bF8086797e1BD0b28bB4DD5583476cC9';
4 changes: 2 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { confirm } from '@inquirer/prompts';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { ContractDetails, RESERVOIR_RELAYER_EOA } from './common/constants';
import { ContractDetails, RESERVOIR_RELAYER_ROUTER } from './common/constants';
import { checkCodeVersion, estimateGas } from './utils/helper';
import { Overrides } from 'ethers';

Expand Down Expand Up @@ -140,6 +140,6 @@ export const deploy = async (
);

const erc721cm = ERC721CM.attach(contract.address);
await erc721cm.addAuthorizedMinter(RESERVOIR_RELAYER_EOA);
await erc721cm.addAuthorizedMinter(RESERVOIR_RELAYER_ROUTER);
console.log('[ERC721CM] Added Reservoir Relayer as authorized minter');
};
4 changes: 2 additions & 2 deletions scripts/deploy1155.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { confirm } from '@inquirer/prompts';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { ContractDetails, RESERVOIR_RELAYER_EOA } from './common/constants';
import { ContractDetails, RESERVOIR_RELAYER_ROUTER } from './common/constants';
import { checkCodeVersion, estimateGas } from './utils/helper';
import { Overrides } from 'ethers';

Expand Down Expand Up @@ -103,6 +103,6 @@ export const deploy1155 = async (
);

// Add reservoir relay as authorized minter by default
await contract.addAuthorizedMinter(RESERVOIR_RELAYER_EOA);
await contract.addAuthorizedMinter(RESERVOIR_RELAYER_ROUTER);
console.log('[ERC721CM] Added Reservoir Relayer as authorized minter');
};
Loading