starknet 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [5.0.2](https://github.com/0xs34n/starknet.js/compare/v5.0.1...v5.0.2) (2023-03-02)
2
+
3
+ ### Bug Fixes
4
+
5
+ - add max_fee to simulate_transaction ([95ae885](https://github.com/0xs34n/starknet.js/commit/95ae8857eb05daaeb75b4b853a0ee9377d9ac7df))
6
+
1
7
  ## [5.0.1](https://github.com/0xs34n/starknet.js/compare/v5.0.0...v5.0.1) (2023-03-02)
2
8
 
3
9
  ### Bug Fixes
package/dist/index.d.ts CHANGED
@@ -1233,7 +1233,7 @@ declare namespace Sequencer {
1233
1233
  trace: TransactionTraceResponse;
1234
1234
  fee_estimation: Sequencer.EstimateFeeResponse;
1235
1235
  };
1236
- type SimulateTransaction = Omit<InvokeFunctionTransaction, 'max_fee' | 'entry_point_type'>;
1236
+ type SimulateTransaction = Omit<InvokeFunctionTransaction, 'entry_point_type'>;
1237
1237
  type EstimateFeeRequestBulk = AllowArray<InvokeEstimateFee | DeclareEstimateFee | DeployEstimateFee | DeployAccountEstimateFee>;
1238
1238
  type EstimateFeeResponse = {
1239
1239
  overall_fee: number;
@@ -13427,7 +13427,8 @@ ${res.tx_failure_reason.error_message}` : res.tx_status;
13427
13427
  calldata: invocation.calldata ?? [],
13428
13428
  signature: signatureToDecimalArray(invocation.signature),
13429
13429
  version: toHex((invocationDetails == null ? void 0 : invocationDetails.version) || 1),
13430
- nonce: toHex(invocationDetails.nonce)
13430
+ nonce: toHex(invocationDetails.nonce),
13431
+ max_fee: toHex((invocationDetails == null ? void 0 : invocationDetails.maxFee) || 0)
13431
13432
  }
13432
13433
  ).then(this.responseParser.parseFeeSimulateTransactionResponse);
13433
13434
  }