Skip to content

Commit

Permalink
fix: add max_fee to simulate_transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
CremaFR committed Feb 28, 2023
1 parent 72d73f6 commit 95ae885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/provider/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ export class SequencerProvider implements ProviderInterface {
signature: signatureToDecimalArray(invocation.signature),
version: toHex(invocationDetails?.version || 1),
nonce: toHex(invocationDetails.nonce),
max_fee: toHex(invocationDetails?.maxFee || 0),
}
).then(this.responseParser.parseFeeSimulateTransactionResponse);
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/api/sequencer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export namespace Sequencer {
fee_estimation: Sequencer.EstimateFeeResponse;
};

export type SimulateTransaction = Omit<InvokeFunctionTransaction, 'max_fee' | 'entry_point_type'>;
export type SimulateTransaction = Omit<InvokeFunctionTransaction, 'entry_point_type'>;

export type EstimateFeeRequestBulk = AllowArray<
InvokeEstimateFee | DeclareEstimateFee | DeployEstimateFee | DeployAccountEstimateFee
Expand Down

0 comments on commit 95ae885

Please sign in to comment.