Skip to content

Commit

Permalink
avoid re-using target storageSlots when deploying proxy contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf committed Sep 21, 2024
1 parent 829bc8b commit 066bfe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/fuels/src/cli/commands/deploy/deployContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ export async function deployContract(
const { contract: targetContract } = await waitForTarget();

// Deploy the SR-C14 Compliant / Proxy Contract
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { storageSlots, stateRoot, ...desiredDeployConfig } = deployConfig;
const proxyDeployConfig: DeployContractOptions = {
...deployConfig,
...desiredDeployConfig,
configurableConstants: {
INITIAL_TARGET: { bits: targetContract.id.toB256() },
INITIAL_OWNER: { Initialized: { Address: { bits: wallet.address.toB256() } } },
Expand Down

0 comments on commit 066bfe4

Please sign in to comment.