Skip to content

Commit

Permalink
Merge branch 'master' into AA-440-validate-without-simulateValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Feb 13, 2025
2 parents 1dab49f + fa411b7 commit f2c4a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/checkout@v4
Expand All @@ -32,7 +32,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions packages/validation-manager/src/ValidationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ export class ValidationManager implements IValidationManager {
continue
}
const currentDelegateeCode = await this.provider.getCode(authSigner)
const newDelegateeCode = hexConcat(['0xef0100', authorization.address])
const newDelegateeCode = '0xef0100' + authorization.address.slice(2)
const noCurrentDelegation = currentDelegateeCode.length <= 2
// TODO: do not send such authorizations to 'handleOps' as it is a waste of gas
const changeDelegation = newDelegateeCode !== currentDelegateeCode
if (noCurrentDelegation || changeDelegation) {
console.log('Adding state override:', { address: authSigner, code: newDelegateeCode })
debug('Adding 7702 state override:', { address: authSigner, code: newDelegateeCode })
stateOverride[authSigner] = {
code: newDelegateeCode
}
Expand Down

0 comments on commit f2c4a86

Please sign in to comment.