From be3a5434ab5f4345f1579650eed105bf9449cc38 Mon Sep 17 00:00:00 2001 From: maayan Date: Thu, 21 Dec 2023 21:04:07 -0500 Subject: [PATCH] update transaction option property to use number type --- CHANGELOG.md | 1 + src/transactions/types.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a92da905e..f61742ebb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/transactions/types.ts b/src/transactions/types.ts index a37006ab8..8d9ae33f0 100644 --- a/src/transactions/types.ts +++ b/src/transactions/types.ts @@ -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; };