Skip to content

Commit

Permalink
Checkout contract utils
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardotc committed May 6, 2024
1 parent 61c604e commit e8584ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/protocol-kit/src/contracts/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isAddress, padHex } from 'ethers'
import { isAddress, zeroPadValue } from 'ethers'
import { keccak_256 } from '@noble/hashes/sha3'
import { DEFAULT_SAFE_VERSION } from '@safe-global/protocol-kit/contracts/config'
import { EMPTY_DATA, ZERO_ADDRESS } from '@safe-global/protocol-kit/utils/constants'
Expand Down Expand Up @@ -349,7 +349,7 @@ export function zkSyncEraCreate2Address(
const addressBytes = keccak256(
toBuffer(
ZKSYNC_CREATE2_PREFIX +
padHex(from, 32).slice(2) +
zeroPadValue(from, 32).slice(2) +
salt.toString('hex') +
bytecodeHash.slice(2) +
inputHash.toString('hex')
Expand Down

0 comments on commit e8584ee

Please sign in to comment.