Skip to content

Commit

Permalink
fix: blocks token range
Browse files Browse the repository at this point in the history
Signed-off-by: GopherJ <[email protected]>
  • Loading branch information
GopherJ committed Sep 28, 2023
1 parent f78e50c commit a060773
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 8 additions & 3 deletions helpers/contracts-deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ import {
insertContractAddressInDb,
withSaveAndVerify,
} from "./contracts-helpers";
import {DRE, getDb, getParaSpaceConfig, waitForTx} from "./misc-utils";
import {
DRE,
getDb,
getParaSpaceConfig,
isMainnet,
waitForTx,
} from "./misc-utils";
import {
eContractid,
ERC20TokenContractId,
Expand Down Expand Up @@ -3089,8 +3095,6 @@ export const deployOtherdeedNTokenImpl = async (
export const deployChromieSquiggleNTokenImpl = async (
poolAddress: tEthereumAddress,
delegationRegistryAddress: tEthereumAddress,
startTokenId: number,
endTokenId: number,
verify?: boolean
) => {
const mintableERC721Logic =
Expand All @@ -3101,6 +3105,7 @@ export const deployChromieSquiggleNTokenImpl = async (
["contracts/protocol/tokenization/libraries/MintableERC721Logic.sol:MintableERC721Logic"]:
mintableERC721Logic,
};
const [startTokenId, endTokenId] = isMainnet() ? [0, 9763] : [0, 20];

return withSaveAndVerify(
await getContractFactory("NTokenChromieSquiggle", libraries),
Expand Down
2 changes: 0 additions & 2 deletions helpers/init-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,6 @@ export const initReservesByHelper = async (
await deployChromieSquiggleNTokenImpl(
pool.address,
delegationRegistryAddress,
0,
20, //set 20 in test environment for easy test. should be 9763 in mainnet
verify
)
).address;
Expand Down
4 changes: 0 additions & 4 deletions scripts/upgrade/ntoken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ export const upgradeNToken = async (verify = false) => {
await deployChromieSquiggleNTokenImpl(
poolAddress,
delegationRegistry,
0,
9763,
verify
)
).address;
Expand All @@ -212,8 +210,6 @@ export const upgradeNToken = async (verify = false) => {
await deployChromieSquiggleNTokenImpl(
poolAddress,
delegationRegistry,
0,
9763,
verify
)
).address;
Expand Down

0 comments on commit a060773

Please sign in to comment.