Skip to content

Commit

Permalink
Include client config override and set version for metrics (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmaayan authored Oct 24, 2023
1 parent ddbd8b1 commit 50ec4d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
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

- [`Breaking`] Changed all instances of `arguments` to `functionArguments` to avoid the reserved keyword in `strict` mode.
- Support publish move module API function
- Fix client config not being added to the request

## 0.0.0 (2023-10-18)

Expand Down
2 changes: 1 addition & 1 deletion src/client/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function get<Req, Res>(options: GetRequestOptions): Promise<AptosRe
acceptType: acceptType?.valueOf(),
params,
overrides: {
...aptosConfig,
...aptosConfig.clientConfig,
...overrides,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/client/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function post<Req, Res>(options: PostRequestOptions): Promise<Aptos
acceptType: acceptType?.valueOf(),
params,
overrides: {
...aptosConfig,
...aptosConfig.clientConfig,
...overrides,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
*
* hardcoded for now, we would want to have it injected dynamically
*/
export const VERSION = "0.0.0";
export const VERSION = "2.0.0";

0 comments on commit 50ec4d1

Please sign in to comment.