Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/typescript-5.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bee344 authored Nov 25, 2024
2 parents 335c35a + d088eb6 commit 3f73bbe
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 122 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"@polkadot/util-crypto": "^13.1.1",
"@substrate/dev": "^0.9.0",
"@types/node-fetch": "^2.6.3",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"lerna": "8.1.2",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand Down
1 change: 1 addition & 0 deletions packages/txwrapper-core/src/core/decode/decodeSignedTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export function decodeSignedTx(

try {
tip = tx.tip.toNumber();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (_error) {
tip = tx.tip.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function decodeSigningPayload(
let tip: number | string;
try {
tip = payload.tip.toNumber();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (_error) {
tip = payload.tip.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export function decodeUnsignedTx(
let tip: number | string;
try {
tip = registry.createType('Compact<Balance>', unsigned.tip).toNumber();
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (_error) {
tip = registry.createType('Compact<Balance>', unsigned.tip).toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
* @param options - Registry and metadata used for constructing the method.
*/
export function removeProxies(
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
args: {},
info: BaseTxInfo,
options: OptionsWithMeta,
Expand Down
1 change: 1 addition & 0 deletions packages/txwrapper-substrate/src/methods/staking/chill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
* @param options - Registry and metadata used for constructing the method.
*/
export function chill(
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
args: {},
info: BaseTxInfo,
options: OptionsWithMeta,
Expand Down
1 change: 1 addition & 0 deletions packages/txwrapper-substrate/src/methods/vesting/vest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
* @param options - Registry and metadata used for constructing the method.
*/
export function vest(
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
args: {},
info: BaseTxInfo,
options: OptionsWithMeta,
Expand Down
Loading

0 comments on commit 3f73bbe

Please sign in to comment.