diff --git a/src/account/default.ts b/src/account/default.ts index 5d797309f..955d3d31a 100644 --- a/src/account/default.ts +++ b/src/account/default.ts @@ -187,9 +187,9 @@ export class Account extends Provider implements AccountInterface { constructorCalldata = [], contractAddress: providedContractAddress, }: DeployAccountContractPayload, - { blockIdentifier, nonce: providedNonce }: EstimateFeeDetails = {} + { blockIdentifier }: EstimateFeeDetails = {} ): Promise { - const nonce = toBN(providedNonce ?? (await this.getNonce())); + const nonce = '0x0'; const version = toBN(feeTransactionVersion); const chainId = await this.getChainId(); const contractAddress = diff --git a/src/account/interface.ts b/src/account/interface.ts index 3ba4bc6f4..9e5f17826 100644 --- a/src/account/interface.ts +++ b/src/account/interface.ts @@ -77,10 +77,12 @@ export abstract class AccountInterface extends ProviderInterface { /** * Estimate Fee for executing a DEPLOY_ACCOUNT transaction on starknet * - * @param contractPayload the payload object containing: + * @param contractPayload - * - contract - the compiled contract to be deployed * - classHash - the class hash of the compiled contract. This can be obtained by using starknet-cli. - * + * @param estimateFeeDetails - + * - optional blockIdentifier + * - constant nonce = 0 * @returns response from estimate_fee */ public abstract estimateAccountDeployFee(