Skip to content

Commit d451231

Browse files
authored
v2.2.1 hot fix (#54)
* feat: export validator utils * chore: bump a version * fix(typescript): represent transaction id as a string (#52) * fix: remove preinstall npm script (#53) * fix: remove preinstall npm script * chore: bump a version
1 parent 838527b commit d451231

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adamant-api",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "JavaScript API library for the ADAMANT Blockchain",
55
"keywords": [
66
"adm",
@@ -47,7 +47,6 @@
4747
"scripts": {
4848
"test": "jest",
4949
"lint": "gts lint",
50-
"preinstall": "npx only-allow pnpm",
5150
"prepare": "husky install",
5251
"clean": "gts clean",
5352
"compile": "tsc",

src/api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ export class AdamantApi extends NodeManager {
785785
* Get transaction by ID
786786
*/
787787
async getTransaction(
788-
id: number,
788+
id: string,
789789
options?: TransactionQuery<TransactionsOptions>
790790
) {
791791
return this.get<GetTransactionByIdResponseDto>('transactions/get', {
@@ -813,7 +813,7 @@ export class AdamantApi extends NodeManager {
813813
/**
814814
* Get queued transaction by ID
815815
*/
816-
async getQueuedTransaction(id: number) {
816+
async getQueuedTransaction(id: string) {
817817
return this.get<GetQueuedTransactionsResponseDto>(
818818
'transactions/queued/get',
819819
{id}
@@ -832,7 +832,7 @@ export class AdamantApi extends NodeManager {
832832
/**
833833
* Get unconfirmed transaction by ID
834834
*/
835-
async getUnconfirmedTransaction(id: number) {
835+
async getUnconfirmedTransaction(id: string) {
836836
return this.get<GetUnconfirmedTransactionByIdResponseDto>(
837837
'transactions/unconfirmed/get',
838838
{id}

0 commit comments

Comments
 (0)