Skip to content

Commit 1806494

Browse files
committed
Fixing lint errors in primitives package
1 parent 2442a2d commit 1806494

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

packages/wallet/primitives/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { config as baseConfig } from '@repo/eslint-config/base'
44
export default [
55
...baseConfig,
66
{
7-
files: ['**/*.{test,spec}.ts'],
7+
// files: ['**/*.{test,spec}.ts'],
88
rules: {
99
'@typescript-eslint/no-explicit-any': 'off',
1010
},

packages/wallet/primitives/src/signature.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AbiFunction, AbiParameters, Address, Bytes, Hash, Hex, Provider, Secp256k1, Signature } from 'ox'
1+
import { AbiFunction, AbiParameters, Address, Bytes, Hash, Hex, Provider, Secp256k1 } from 'ox'
22
import {
33
Config,
44
Leaf,
@@ -22,7 +22,7 @@ import { RECOVER_SAPIENT_SIGNATURE, RECOVER_SAPIENT_SIGNATURE_COMPACT, IS_VALID_
2222
import { wrap, decode } from './erc-6492.js'
2323
import { fromConfigUpdate, hash, Parented } from './payload.js'
2424
import { minBytesFor, packRSY, unpackRSY } from './utils.js'
25-
import { Constants, Network } from './index.js'
25+
import { Constants } from './index.js'
2626

2727
export const FLAG_SIGNATURE_HASH = 0
2828
export const FLAG_ADDRESS = 1
@@ -1218,7 +1218,7 @@ async function recoverTopology(
12181218
weight: topology.weight,
12191219
}
12201220

1221-
default:
1221+
default: {
12221222
const provider = 'provider' in options!.provider ? options!.provider.provider : options!.provider
12231223
const block = 'block' in options!.provider ? options!.provider.block : undefined
12241224

@@ -1254,6 +1254,7 @@ async function recoverTopology(
12541254
}
12551255
}
12561256
}
1257+
}
12571258
}
12581259

12591260
case 'sapient':
@@ -1264,7 +1265,7 @@ async function recoverTopology(
12641265
case 'assume-valid':
12651266
throw new Error(`unable to validate sapient signer ${topology.signature.address} signature`)
12661267

1267-
default:
1268+
default: {
12681269
const provider = 'provider' in options!.provider ? options!.provider.provider : options!.provider
12691270
const block = 'block' in options!.provider ? options!.provider.block : undefined
12701271

@@ -1298,6 +1299,7 @@ async function recoverTopology(
12981299
},
12991300
weight: topology.weight,
13001301
}
1302+
}
13011303
}
13021304
}
13031305
} else if (isRawNestedLeaf(topology)) {

0 commit comments

Comments
 (0)