Skip to content

Commit

Permalink
[types] Remove requirement on 0x for input
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Oct 24, 2023
1 parent ddbd8b1 commit 945075f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 945075f

Please sign in to comment.