Skip to content

Commit

Permalink
fix: remove deployMaxFee from deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Nov 25, 2022
1 parent f79ab9a commit 6d5fa24
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/account/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,22 +279,12 @@ export class Account extends Provider implements AccountInterface {
constructorCalldata = [],
additionalCalls = [],
}: UniversalDeployerContractPayload,
{ nonce, version, maxFee }: InvocationsDetails = {}
invocationsDetails: InvocationsDetails = {}
): Promise<InvokeFunctionResponse> {
const compiledConstructorCallData = compileCalldata(constructorCalldata);
const callsArray = Array.isArray(additionalCalls) ? additionalCalls : [additionalCalls];
const deploySalt = salt ?? randomAddress();

const deployMaxFee =
maxFee ??
(await this.getSuggestedMaxFee(
{
type: 'DEPLOY',
payload: { classHash, salt: deploySalt, unique, constructorCalldata, additionalCalls },
},
{}
));

return this.execute(
[
{
Expand All @@ -311,11 +301,7 @@ export class Account extends Provider implements AccountInterface {
...callsArray,
],
undefined,
{
nonce,
maxFee: deployMaxFee,
version,
}
invocationsDetails
);
}

Expand Down

0 comments on commit 6d5fa24

Please sign in to comment.