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,