Skip to content

Commit

Permalink
fix: Update _foundry_deploy_contract_factory.md (#168)
Browse files Browse the repository at this point in the history
# Description

update contract factory foundry to remove `--sender` and
`--factory-deps` from `create` and `cast`
  • Loading branch information
bxpana authored Aug 2, 2024
1 parent 7849a9b commit d0f0d1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ our new `CrowdfundingFactory`.
command:

```bash
forge create src/CrowdfundFactory.sol:CrowdfundingFactory --factory-deps src/CrowdfundingCampaign.sol:CrowdfundingCampaign --account myKeystore --sender <KEYSTORE_ADDRESS> --rpc-url zkSyncSepoliaTestnet --chain %%zk_testnet_chain_id%% --zksync
forge create src/CrowdfundFactory.sol:CrowdfundingFactory --account myKeystore --rpc-url zkSyncSepoliaTestnet --chain %%zk_testnet_chain_id%% --zksync
# To deploy the contract on local in-memory node:
# forge script script/DeployFactory.s.sol:DeployFactoryAndCreateCampaign --account myKeystore --sender <KEYSTORE_ADDRESS> --rpc-url inMemoryNode --broadcast --zksync
```
Expand All @@ -122,7 +122,7 @@ command:
1. Using the `CrowdfundingFactory` contract address let's deploy our `CrowdfundingCampaign`:

```bash
cast send 0x607545Fd35ef49d7445555ddFa22938fD4Efb219 "createCampaign(uint256)" "1" --rpc-url zkSyncSepoliaTestnet --chain %%zk_testnet_chain_id%% --account myKeystore --sender <KEYSTORE_ADDRESS>
cast send 0x607545Fd35ef49d7445555ddFa22938fD4Efb219 "createCampaign(uint256)" "1" --rpc-url zkSyncSepoliaTestnet --chain %%zk_testnet_chain_id%% --account myKeystore
# To use the contract factory on local in-memory node:
# cast send 0x607545Fd35ef49d7445555ddFa22938fD4Efb219 "createCampaign(uint256)" "1" --rpc-url inMemoryNode --chain 260 --account myKeystore --sender <KEYSTORE_ADDRESS>
```
Expand Down

0 comments on commit d0f0d1a

Please sign in to comment.