Skip to content

Commit

Permalink
ALL-8482 Fix ton get token data method (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
hehe100596 committed Sep 4, 2024
1 parent 4d123af commit 6ff4ab2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.2.42] - 2024.9.4

### Fixed

- Replaced Ton method `getTokenMetadata` with working `getTokenData`

## [4.2.41] - 2024.8.30

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "4.2.41",
"version": "4.2.42",
"description": "Tatum JS SDK",
"author": "Tatum",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/dto/rpc/ton/TonRpcSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export interface TonRpcSuite {

unpackAddress(address: string): Promise<TonResponse>;

getTokenMetadata(token: string): Promise<TonResponse>;
getTokenData(token: string): Promise<TonResponse>;

detectAddress(address: string): Promise<TonResponse>;

Expand Down
4 changes: 2 additions & 2 deletions src/service/rpc/other/AbstractTonRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1119,9 +1119,9 @@ export abstract class AbstractTonRpc implements TonRpcSuite {
})
}

getTokenMetadata(address: string): Promise<TonResponse> {
getTokenData(address: string): Promise<TonResponse> {
return this.sendGet({
path: `/getTokenMetadata`,
path: `/getTokenData`,
queryParams: { address },
})
}
Expand Down

0 comments on commit 6ff4ab2

Please sign in to comment.