Skip to content

Commit 06de64f

Browse files
committed
chore: bump borsher
1 parent f485d7d commit 06de64f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@near-js/types": "^0.2.1",
2020
"@near-js/utils": "^0.2.2",
2121
"bignumber.js": "^9.1.2",
22-
"borsher": "^3.6.0",
22+
"borsher": "^4.0.0",
2323
"buffer": "^6.0.3"
2424
}
2525
}

packages/core/src/utils/Parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Parser<T> {
1414
return new Parser((buffer) => JSON.parse(Buffer.from(buffer).toString()));
1515
}
1616

17-
static borsh<T>(schema: BorshSchema): Parser<T> {
17+
static borsh<T>(schema: BorshSchema<T>): Parser<T> {
1818
return new Parser((buffer) => borshDeserialize(schema, buffer));
1919
}
2020

packages/core/src/utils/Stringifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Stringifier<T> {
1414
return new Stringifier((data) => Buffer.from(JSON.stringify(data)));
1515
}
1616

17-
static borsh<T>(schema: BorshSchema): Stringifier<T> {
17+
static borsh<T>(schema: BorshSchema<T>): Stringifier<T> {
1818
return new Stringifier((data) => borshSerialize(schema, data));
1919
}
2020

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)