(password string, nonce uint64)
| 26 | ) |
| 27 | |
| 28 | func DeployNetwork(password string, nonce uint64) common.Address { |
| 29 | client, err, privateKey, _, fromAddress := config.Connect(password) |
| 30 | printBalance(client, fromAddress) |
| 31 | // Launch contract deploy transaction. |
| 32 | auth := newTransactor(privateKey, new(big.Int).SetUint64(nonce)) |
| 33 | contractAddress, tx, _, err := network.DeployNetwork(auth, client) |
| 34 | if err != nil { |
| 35 | log.Fatal(err.Error()) |
| 36 | } |
| 37 | printTx(tx, err, client, contractAddress) |
| 38 | return contractAddress |
| 39 | } |
nothing calls this directly
no test coverage detected