fix resolution
add broadcast flag
This commit is contained in:
parent
ec0eec8ac4
commit
d33ac919d1
1 changed files with 3 additions and 2 deletions
|
@ -157,6 +157,7 @@ func (d *Client) AccountFund(fromAccount string, toAccount string, amount string
|
|||
"to_account": toAccount,
|
||||
"amount": amount,
|
||||
"outputs": outputs,
|
||||
"broadcast": true,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -214,7 +215,7 @@ func (d *Client) Publish(name, filePath string, bid float64, options PublishOpti
|
|||
}{
|
||||
Name: name,
|
||||
FilePath: filePath,
|
||||
Bid: fmt.Sprintf("%.1f", bid),
|
||||
Bid: fmt.Sprintf("%.6f", bid),
|
||||
PublishOptions: &options,
|
||||
}
|
||||
structs.DefaultTagName = "json"
|
||||
|
@ -225,7 +226,7 @@ func (d *Client) ChannelNew(name string, amount float64, accountID *string) (*Ch
|
|||
response := new(ChannelNewResponse)
|
||||
return response, d.call(response, "channel_new", map[string]interface{}{
|
||||
"channel_name": name,
|
||||
"amount": fmt.Sprintf("%.1f", amount),
|
||||
"amount": fmt.Sprintf("%.6f", amount),
|
||||
"account_id": accountID,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue