@@ -1018,20 +1018,56 @@ func (b *bootstrapExecutor) setupVMBridge(serviceAddress flow.Address, env *temp
10181018 )
10191019 panicOnMetaInvokeErrf ("failed to create COA in Service Account: %s" , txError , err )
10201020
1021- gasLimit := 15000000
1022- deploymentValue := 0.0
1021+ // gasLimit := 15000000
1022+ // deploymentValue := 0.0
10231023
1024- // Retrieve the factory bytecode from the JSON args
1025- factoryBytecode := bridge .GetBytecodeFromArgsJSON ("cadence/args/deploy-factory-args.json" )
1024+ // // Retrieve the factory bytecode from the JSON args
1025+ // factoryBytecode := bridge.GetBytecodeFromArgsJSON("cadence/args/deploy-factory-args.json")
10261026
1027- // deploy the Solidity Factory contract to the service account's COA
1028- tx = blueprints .DeployEVMContractTransaction (serviceAddress , factoryBytecode , gasLimit , deploymentValue , bridgeEnv , * env )
1027+ // // deploy the Solidity Factory contract to the service account's COA
1028+ // tx = blueprints.DeployEVMContractTransaction(serviceAddress, factoryBytecode, gasLimit, deploymentValue, bridgeEnv, *env)
1029+
1030+ // txError, err = b.invokeMetaTransaction(
1031+ // NewContextFromParent(b.ctx, WithEVMEnabled(true)),
1032+ // Transaction(tx, 0),
1033+ // )
1034+ // panicOnMetaInvokeErrf("failed to deploy the Factory in the Service Account COA: %s", txError, err)
1035+
1036+ // // Retrieve the factory bytecode from the JSON args
1037+ // registryBytecode := bridge.GetBytecodeFromArgsJSON("cadence/args/deploy-registry-args.json")
1038+
1039+ // // deploy the Solidity Registry contract to the service account's COA
1040+ // tx = blueprints.DeployEVMContractTransaction(serviceAddress, registryBytecode, gasLimit, deploymentValue, bridgeEnv, *env)
1041+
1042+ // txError, err = b.invokeMetaTransaction(
1043+ // NewContextFromParent(b.ctx, WithEVMEnabled(true)),
1044+ // Transaction(tx, 0),
1045+ // )
1046+ // panicOnMetaInvokeErrf("failed to deploy the Registry in the Service Account COA: %s", txError, err)
1047+
1048+ // // Retrieve the erc20Deployer bytecode from the JSON args
1049+ // erc20DeployerBytecode := bridge.GetBytecodeFromArgsJSON("cadence/args/deploy-erc20-deployer-args.json")
1050+
1051+ // // deploy the Solidity ERC20 Deployer contract to the service account's COA
1052+ // tx = blueprints.DeployEVMContractTransaction(serviceAddress, erc20DeployerBytecode, gasLimit, deploymentValue, bridgeEnv, *env)
1053+
1054+ // txError, err = b.invokeMetaTransaction(
1055+ // NewContextFromParent(b.ctx, WithEVMEnabled(true)),
1056+ // Transaction(tx, 0),
1057+ // )
1058+ // panicOnMetaInvokeErrf("failed to deploy the ERC20 Deployer in the Service Account COA: %s", txError, err)
1059+
1060+ // erc721DeployerBytecode := bridge.GetBytecodeFromArgsJSON("cadence/args/deploy-erc721-deployer-args.json")
1061+
1062+ // // deploy the Solidity Registry contract to the service account's COA
1063+ // tx = blueprints.DeployEVMContractTransaction(serviceAddress, erc721DeployerBytecode, gasLimit, deploymentValue, bridgeEnv, *env)
1064+
1065+ // txError, err = b.invokeMetaTransaction(
1066+ // NewContextFromParent(b.ctx, WithEVMEnabled(true)),
1067+ // Transaction(tx, 0),
1068+ // )
1069+ // panicOnMetaInvokeErrf("failed to deploy the ERC721 Deployer in the Service Account COA: %s", txError, err)
10291070
1030- txError , err = b .invokeMetaTransaction (
1031- NewContextFromParent (b .ctx , WithEVMEnabled (true )),
1032- Transaction (tx , 0 ),
1033- )
1034- panicOnMetaInvokeErrf ("failed to deploy the Factory in the Service Account COA: %s" , txError , err )
10351071 }
10361072}
10371073
0 commit comments