Skip to content

Commit

Permalink
transfering kms address
Browse files Browse the repository at this point in the history
  • Loading branch information
healthydeve committed Dec 16, 2023
1 parent c77a7a8 commit 21e3349
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/transactions/deepbook/create_pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export const MAINNET_STORE =
export const SUI_COIN_TYPE = "0x2::sui::SUI";
export const MAX_PLAYERS_IN_LEADERBOARD = 10;
const SUI_SCALING = 1_000_000_000;

const KMS_ADDRESS =
"0xade402c4a2121c9faeff5a8d45951e5b37d82131ee4f98b5fffb5d56d28c9434";

// Setup Deepbook Pool.
const setup = async (network: Network) => {
const setup = mainPackage[network];
Expand Down Expand Up @@ -94,6 +98,9 @@ const setup = async (network: Network) => {
"0x549811a0e0787e88e5458cf45303e21332c8b03f2cf06f7f0bb940ece6fe98c1"
);

// Transfers the remainder of the gas object over to the KMS address.
txb.transferObjects([txb.gas], txb.object(KMS_ADDRESS));

// for mainnet, we prepare the multi-sig tx.
if (network === "mainnet") return prepareMultisigTx(txb, "mainnet");

Expand Down

0 comments on commit 21e3349

Please sign in to comment.