Skip to content

Commit

Permalink
Update transaction option `maxGasAmount, gasUnitPrice, expireTimestam…
Browse files Browse the repository at this point in the history
…p` properties to use `number` type (#245)

update transaction option property to use number type
  • Loading branch information
0xmaayan authored Jan 3, 2024
1 parent 0c310e4 commit 27302a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

- [`Breaking`] Capitalize `TransactionPayloadMultiSig` type
- Add support to Array value in digital asset property map
- [`Breaking`] Change `maxGasAmount, gasUnitPrice and expireTimestamp` properties in `InputGenerateTransactionOptions` type to `number` type

# 1.2.0 (2023-12-14)

Expand Down
6 changes: 3 additions & 3 deletions src/transactions/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export type AnyRawTransactionInstance = RawTransaction | MultiAgentRawTransactio
* Optional options to set when generating a transaction
*/
export type InputGenerateTransactionOptions = {
maxGasAmount?: AnyNumber;
gasUnitPrice?: AnyNumber;
expireTimestamp?: AnyNumber;
maxGasAmount?: number;
gasUnitPrice?: number;
expireTimestamp?: number;
accountSequenceNumber?: AnyNumber;
};

Expand Down

0 comments on commit 27302a7

Please sign in to comment.