Skip to content

Commit

Permalink
update setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Mar 26, 2024
1 parent 382eb2c commit f8c0346
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions local/setup_emulator.2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Provided address is the address of the Factory contract deployed in the previous txn
flow-c1 accounts add-contract ./cadence/contracts/bridge/FlowEVMBridgeUtils.cdc \
<REPLACE WITH `deployedContractAddress` VALUE WHEN FACTORY WAS DEPLOYED>
<REPLACE WITH DEPLOYED FACTORY EVM ADDRESS>

flow-c1 accounts add-contract ./cadence/contracts/bridge/FlowEVMBridgeNFTEscrow.cdc
flow-c1 accounts add-contract ./cadence/contracts/bridge/FlowEVMBridgeTemplates.cdc
Expand All @@ -10,11 +10,12 @@ flow-c1 transactions send ./cadence/transactions/bridge/admin/upsert_contract_co

flow-c1 accounts add-contract ./cadence/contracts/bridge/IEVMBridgeNFTMinter.cdc

# Deploy main bridge contract
flow-c1 accounts add-contract ./cadence/contracts/bridge/FlowEVMBridge.cdc f8d6e0586b0a20c7
# Deploy main bridge interface & contract
flow-c1 accounts add-contract ./cadence/contracts/bridge/IFlowEVMNFTBridge.cdc
flow-c1 accounts add-contract ./cadence/contracts/bridge/FlowEVMBridge.cdc

# Deploy the bridge router directing calls from COAs to the dedicated bridge
flow-c1 accounts add-contract ./cadence/contracts/bridge/EVMBridgeRouter.cdc f8d6e0586b0a20c7
flow-c1 accounts add-contract ./cadence/contracts/bridge/EVMBridgeRouter.cdc 0xf8d6e0586b0a20c7 FlowEVMBridge

# Create `example-nft` account 179b6b1cb6755e31 with private key 96dfbadf086daa187100a24b1fd2b709b702954bbd030a394148e11bcbb799ef
flow-c1 accounts create --key "351e1310301a7374430f6077d7b1b679c9574f8e045234eac09568ceb15c4f5d937104b4c3180df1e416da20c9d58aac576ffc328a342198a5eae4a29a13c47a"
Expand Down

0 comments on commit f8c0346

Please sign in to comment.