Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Jan 5, 2025
1 parent bb91971 commit dcfe286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/bundler/src/modules/BundleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export class BundleManager implements IBundleManager {
const authorizationList: AuthorizationList = eip7702Tuples.map(it => {
const res = {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion,@typescript-eslint/no-base-to-string
chainId: `0x${parseInt(it.chainId.toString()).toString(16)}`.replace(/0x0*/, '0x'),
chainId: `0x${parseInt(it.chainId.toString()).toString(16)}`.replace(/0x0*/, '0x') as PrefixedHexString,
address: it.address as PrefixedHexString,
nonce: toRlpHex(it.nonce as PrefixedHexString),
yParity: toRlpHex(it.yParity as PrefixedHexString),
Expand Down
2 changes: 1 addition & 1 deletion packages/validation-manager/src/ValidationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class ValidationManager implements IValidationManager {
const currentChainId = BigNumber.from((this.entryPoint.provider as any)._network.chainId)
const authChainId = BigNumber.from(authorizationList[0].chainId)
requireCond(authChainId.eq(BigNumber.from(0)) ||
authChainId.eq(currentChainId), `Invalid chainId in authorization`, ValidationErrors.InvalidFields)
authChainId.eq(currentChainId), 'Invalid chainId in authorization', ValidationErrors.InvalidFields)
requireCond(getEip7702AuthorizationSigner(authorizationList[0]).toLowerCase() === userOp.sender.toLowerCase(), 'Authorization signer is not sender', ValidationErrors.InvalidFields)
}
const stateOverrideForEip7702 = await this.getAuthorizationsStateOverride(authorizationList)
Expand Down

0 comments on commit dcfe286

Please sign in to comment.