Skip to content

Commit 436067b

Browse files
committed
fix salt
1 parent 1cce7fe commit 436067b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/data-table.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ export function DataTable({
177177
const chain = defineChain(chainId);
178178
const client = getThirdwebClient();
179179
const salt =
180-
inputSalt ||
181-
concatHex(["0x0101", padHex("0x", { size: 30 })]).toString();
180+
inputSalt || concatHex(["0x07", padHex("0x", { size: 31 })]).toString();
182181

183182
await switchChain(chain);
184183

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default async function Page(props: {
4949

5050
const ProxyDeployedEvent = prepareEvent({
5151
signature:
52-
"event ProxyDeployed(address indexed implementation, address indexed proxy, address indexed deployer, bytes32 inputSalt, bytes data)",
52+
"event ProxyDeployedV2(address indexed implementation, address indexed proxy, address indexed deployer, bytes32 inputSalt, bytes data, bytes extraData)",
5353
});
5454

5555
const twCloneFactoryContract = await getDeployedCloneFactoryContract({

packages/thirdweb/src/contract/deployment/deploy-via-autofactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function prepareAutoFactoryDeployTransaction(
4141
? args.salt.startsWith("0x") && args.salt.length === 66
4242
? (args.salt as `0x${string}`)
4343
: keccakId(args.salt)
44-
: (`0x7${toHex(blockNumber, {
44+
: (`0x07${toHex(blockNumber, {
4545
size: 31,
4646
}).replace(/^0x/, "")}` as `0x${string}`);
4747

0 commit comments

Comments
 (0)