diff --git a/scripts/config/constants.ts b/scripts/config/constants.ts index d3335b25..466fe899 100644 --- a/scripts/config/constants.ts +++ b/scripts/config/constants.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 export const adminCapOwner = { - "mainnet": "0xbd1d25f49cc9b65f1e41d6c264ad0e065923de7ce6fd8b86d87d25c0a58742b9", // change back to right owner 0xd0ec0b201de6b4e7f425918bbd7151c37fc1b06c59b3961a2a00db74f6ea865e + "mainnet": "0xd0ec0b201de6b4e7f425918bbd7151c37fc1b06c59b3961a2a00db74f6ea865e", // change back to right owner "testnet": "0xb3d277c50f7b846a5f609a8d13428ae482b5826bb98437997373f3a0d60d280e", }; @@ -15,3 +15,8 @@ export const upgradeCapID = { "mainnet": "0xc3670c420ee0e3cccfae819be4b6780007d56727467d5e5c60c0d3b6e264f5d9", // change after publish "testnet": "0x56632f4f1b707b5b0c1b99defe65a056af3f846d95700b4a1cbd3adc94bf7c96", }; + +export const adminCapID = { + "mainnet": "0xd542cd47d94009452de200032ac80ff1ceb31bb5f9ed6df5d97c9ae54a1976dd", + "testnet": "0x014e6a65f60936177820141ad64430290b6ad5e16421691dc9f3fa9907154b2e" +}; diff --git a/scripts/transactions/createPool.ts b/scripts/transactions/createPool.ts index 06ce03d0..dae92ce2 100644 --- a/scripts/transactions/createPool.ts +++ b/scripts/transactions/createPool.ts @@ -2,14 +2,13 @@ // SPDX-License-Identifier: Apache-2.0 import { Transaction } from '@mysten/sui/transactions'; import { prepareMultisigTx } from '../utils/utils'; -import { adminCapOwner } from '../config/constants'; +import { adminCapOwner, adminCapID } from '../config/constants'; import { DeepBookClient } from '@mysten/deepbook-v3'; import { getFullnodeUrl, SuiClient } from '@mysten/sui/client'; (async () => { // Update constant for env const env = 'mainnet'; - const adminCap = '0xd542cd47d94009452de200032ac80ff1ceb31bb5f9ed6df5d97c9ae54a1976dd'; // Initialize with balance managers if created const balanceManagers = { @@ -26,7 +25,7 @@ import { getFullnodeUrl, SuiClient } from '@mysten/sui/client'; url: getFullnodeUrl(env), }), balanceManagers: balanceManagers, - adminCap: adminCap, + adminCap: adminCapID[env], }); const tx = new Transaction();