From 65eed1f671b41393b3ae33ae1aaa7a9ae0fbc013 Mon Sep 17 00:00:00 2001 From: Toni Tabak Date: Tue, 22 Nov 2022 09:43:19 +0100 Subject: [PATCH] fix: anotate deprecate all providers deployContract --- src/provider/default.ts | 3 +++ src/provider/interface.ts | 2 ++ src/provider/rpc.ts | 2 +- src/provider/sequencer.ts | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/provider/default.ts b/src/provider/default.ts index 1f5a3091a..a22fa4adb 100644 --- a/src/provider/default.ts +++ b/src/provider/default.ts @@ -133,6 +133,9 @@ export class Provider implements ProviderInterface { return this.provider.invokeFunction(functionInvocation, details); } + /** + * @deprecated This method won't be supported, use Account.deploy instead + */ public async deployContract( payload: DeployContractPayload, details: InvocationsDetails diff --git a/src/provider/interface.ts b/src/provider/interface.ts index f2ec4b943..5d7d888f5 100644 --- a/src/provider/interface.ts +++ b/src/provider/interface.ts @@ -140,6 +140,8 @@ export abstract class ProviderInterface { /** * Deploys a given compiled contract (json) to starknet * + * @deprecated This method won't be supported, use Account.deploy instead + * * @param payload payload to be deployed containing: * - compiled contract code * - constructor calldata diff --git a/src/provider/rpc.ts b/src/provider/rpc.ts index 17e15c6bf..5c7f6a0ba 100644 --- a/src/provider/rpc.ts +++ b/src/provider/rpc.ts @@ -323,7 +323,7 @@ export class RpcProvider implements ProviderInterface { } /** - * @deprecated This method wont be supported soon, use Account.deploy instead + * @deprecated This method won't be supported, use Account.deploy instead */ public async deployContract( { contract, constructorCalldata, addressSalt }: DeployContractPayload, diff --git a/src/provider/sequencer.ts b/src/provider/sequencer.ts index 275d8d7fa..d1072d0f4 100644 --- a/src/provider/sequencer.ts +++ b/src/provider/sequencer.ts @@ -326,6 +326,9 @@ export class SequencerProvider implements ProviderInterface { }).then(this.responseParser.parseInvokeFunctionResponse); } + /** + * @deprecated This method won't be supported, use Account.deploy instead + */ public async deployContract({ contract, constructorCalldata,