DeployRNode deploy rnode contract
(password string, nonce uint64)
| 11 | |
| 12 | // DeployRNode deploy rnode contract |
| 13 | func DeployRNode(password string, nonce uint64) common.Address { |
| 14 | client, err, privateKey, _, fromAddress := config.Connect(password) |
| 15 | printBalance(client, fromAddress) |
| 16 | // Launch contract deploy transaction. |
| 17 | auth := newTransactor(privateKey, new(big.Int).SetUint64(nonce)) |
| 18 | contractAddress, tx, _, err := rnode.DeployRnode(auth, client) |
| 19 | if err != nil { |
| 20 | log.Fatal(err.Error()) |
| 21 | } |
| 22 | printTx(tx, err, client, contractAddress) |
| 23 | return contractAddress |
| 24 | } |
nothing calls this directly
no test coverage detected