diff --git a/CHANGELOG.md b/CHANGELOG.md index 5abeaccd9..f8bf67b34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. This changelog is written by hand for now. It adheres to the format set out by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). # Unreleased +- Changed all Regex based inputs requiring a `0x` to be optional. This is to allow for easier copy/pasting of addresses and keys. - [`Breaking`] Changed all instances of `arguments` to `functionArguments` to avoid the reserved keyword in `strict` mode. - Support publish move module API function diff --git a/src/types/index.ts b/src/types/index.ts index 7d11062d6..7f8a945a2 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -639,9 +639,9 @@ export type MoveUint32Type = number; export type MoveUint64Type = string; export type MoveUint128Type = string; export type MoveUint256Type = string; -export type MoveAddressType = `0x${string}`; -export type MoveObjectType = `0x${string}`; -export type MoveStructType = `0x${string}::${string}::${string}`; +export type MoveAddressType = string; +export type MoveObjectType = string; +export type MoveStructType = `${string}::${string}::${string}`; export type MoveOptionType = MoveType | null | undefined; /** * String representation of a on-chain Move struct type. @@ -840,7 +840,7 @@ export type LedgerInfo = { */ export type Block = { block_height: string; - block_hash: `0x${string}`; + block_hash: string; block_timestamp: string; first_version: string; last_version: string;