File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
packages/thirdweb/src/contract/deployment/zksync Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,11 @@ import {
1313} from "../../../utils/any-evm/zksync/constants.js" ;
1414import { isContractDeployed } from "../../../utils/bytecode/is-contract-deployed.js" ;
1515import { ensureBytecodePrefix } from "../../../utils/bytecode/prefix.js" ;
16- import { type Hex , uint8ArrayToHex } from "../../../utils/encoding/hex.js" ;
16+ import {
17+ type Hex ,
18+ isHex ,
19+ uint8ArrayToHex ,
20+ } from "../../../utils/encoding/hex.js" ;
1721import type { ClientAndChainAndAccount } from "../../../utils/types.js" ;
1822import { getContract } from "../../contract.js" ;
1923import { zkDeployContract } from "./zkDeployContract.js" ;
@@ -89,7 +93,11 @@ export async function zkDeployContractDeterministic(
8993 abi : parseAbi ( singletonFactoryAbi ) ,
9094 } ) ;
9195
92- const salt = options ?. salt ? keccakId ( options . salt ) : keccakId ( "thirdweb" ) ;
96+ const salt = options ?. salt
97+ ? isHex ( options . salt ) && options . salt . length === 66
98+ ? options . salt
99+ : keccakId ( options . salt )
100+ : keccakId ( "thirdweb" ) ;
93101
94102 await sendAndConfirmTransaction ( {
95103 account : options . account ,
You can’t perform that action at this time.
0 commit comments