From 5f1c6479b2b126b2591c44a818283cfdffd13f81 Mon Sep 17 00:00:00 2001 From: Fess Date: Fri, 4 Aug 2023 19:47:13 +0400 Subject: [PATCH] fix: contract deploy options type removed --- packages/cli/src/cli.ts | 4 ++-- packages/transactions/src/builders.ts | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts index 73887da10..b6cdb9db9 100644 --- a/packages/cli/src/cli.ts +++ b/packages/cli/src/cli.ts @@ -18,7 +18,7 @@ import { ClarityAbi, ClarityValue, ContractCallPayload, - ContractDeployOptions, + SignedContractDeployOptions, createStacksPrivateKey, cvToString, estimateContractDeploy, @@ -766,7 +766,7 @@ async function contractDeploy(network: CLINetworkAdapter, args: string[]): Promi ? new StacksMainnet({ url: network.legacyNetwork.blockstackAPIUrl }) : new StacksTestnet({ url: network.legacyNetwork.blockstackAPIUrl }); - const options: ContractDeployOptions = { + const options: SignedContractDeployOptions = { contractName, codeBody: source, senderKey: privateKey, diff --git a/packages/transactions/src/builders.ts b/packages/transactions/src/builders.ts index 4caa3a081..16467a4a7 100644 --- a/packages/transactions/src/builders.ts +++ b/packages/transactions/src/builders.ts @@ -706,11 +706,6 @@ export interface BaseContractDeployOptions { sponsored?: boolean; } -export interface ContractDeployOptions extends BaseContractDeployOptions { - /** a hex string of the private key of the transaction sender */ - senderKey: string; -} - export interface UnsignedContractDeployOptions extends BaseContractDeployOptions { /** a hex string of the public key of the transaction sender */ publicKey: string;