Skip to content

Commit

Permalink
Fix lint and depcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Jan 21, 2025
1 parent dd554cd commit 44e16fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/validation-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"@ethersproject/properties": "^5.7.0",
"@ethersproject/providers": "^5.7.0",
"debug": "^4.3.4",
"ethers": "^5.7.0"
"ethers": "^5.7.0",
"ow": "^0.28.1"
},
"devDependencies": {}
}
8 changes: 6 additions & 2 deletions packages/validation-manager/src/ERC7562Parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ export class ERC7562Parser {
erc7562Call.from.toLowerCase() !== this.senderCreatorAddress.toLowerCase()) {
return
}
const nonceManagerAddress = this.nonceManagerAddress
if (userOp.sender.toLowerCase() === erc7562Call.to.toLowerCase()) {
this.currentEntity = AccountAbstractionEntity.account
this.currentEntityAddress = userOp.sender
Expand All @@ -410,9 +411,12 @@ export class ERC7562Parser {
} else if (this.senderCreatorAddress.toLowerCase() === erc7562Call.to.toLowerCase()) {
this.currentEntity = AccountAbstractionEntity.senderCreator
this.currentEntityAddress = this.senderCreatorAddress
} else if (this.nonceManagerAddress?.toLowerCase() === erc7562Call.to.toLowerCase()) {
} else if (
nonceManagerAddress != null &&
nonceManagerAddress.toLowerCase() === erc7562Call.to.toLowerCase()
) {
this.currentEntity = AccountAbstractionEntity.nativeNonceManager
this.currentEntityAddress = this.nonceManagerAddress!
this.currentEntityAddress = nonceManagerAddress
} else {
throw new RpcError(`could not find entity name for address ${erc7562Call.to}. This should not happen. This is a bug.`, 0)
}
Expand Down

0 comments on commit 44e16fb

Please sign in to comment.