Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dcb9 committed Jan 2, 2019
1 parent d3bad84 commit 98f47e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ Compile Solidity contracts.
Flags:
--help Show context-sensitive help (also try --help-long and --help-man).
--qtum_rpc=QTUM_RPC RPC provider url
--qtum_sender=QTUM_SENDER (qtum) Sender UXTO Address
--qtum_sender=QTUM_SENDER (qtum) Sender UTXO Address
--eth_rpc=ETH_RPC RPC provider url
--env="development" Environment name
--repo=REPO Path of contracts repository
Expand Down
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
var (
app = kingpin.New("solar", "Solidity smart contract deployment management.")
qtumRPC = app.Flag("qtum_rpc", "RPC provider url").Envar("QTUM_RPC").String()
qtumSenderAddress = app.Flag("qtum_sender", "(qtum) Sender UXTO Address").Envar("QTUM_SENDER").String()
qtumSenderAddress = app.Flag("qtum_sender", "(qtum) Sender UTXO Address").Envar("QTUM_SENDER").String()

// geth --rpc --rpcapi="eth,personal,miner"
ethRPC = app.Flag("eth_rpc", "RPC provider url").Envar("ETH_RPC").String()
Expand Down
16 changes: 8 additions & 8 deletions prefund.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
)

func init() {
cli := app.Command("prefund", "(qtum) fund an owner address with uxtos")
cli := app.Command("prefund", "(qtum) fund an owner address with utxos")

owner := cli.Arg("owner", "contract name or address to fund").Required().String()

amount := cli.Arg("amount", "fund an uxto with this amount").Required().Float64()
multiples := cli.Arg("multiples", "fund this number of identical uxtos").Default("1").Int()
amount := cli.Arg("amount", "fund an utxo with this amount").Required().Float64()
multiples := cli.Arg("multiples", "fund this number of identical utxos").Default("1").Int()

appTasks["prefund"] = func() (err error) {
rpc := solar.QtumRPC()
Expand Down Expand Up @@ -46,15 +46,15 @@ func init() {
// The JSON object is allowed to have duplicate keys for this call
// { <addr>: <amount>, ... }

var uxtos []string
var utxos []string
for i := 0; i < *multiples; i++ {
uxto := fmt.Sprintf(`"%s": %f`, ownerAddr, *amount)
uxtos = append(uxtos, uxto)
utxo := fmt.Sprintf(`"%s": %f`, ownerAddr, *amount)
utxos = append(utxos, utxo)
}

amounts := "{\n" + strings.Join(uxtos, ",\n") + "\n}"
amounts := "{\n" + strings.Join(utxos, ",\n") + "\n}"

// fmt.Println("jsonuxtos", amounts)
// fmt.Println("json utxos", amounts)

var result interface{}

Expand Down

0 comments on commit 98f47e2

Please sign in to comment.