mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
Set variables directly from utils.KasToSompi
Use = instead of := to ensure no shadowing
This commit is contained in:
parent
03159b335e
commit
205573d217
@ -35,13 +35,11 @@ func send(conf *sendConfig) error {
|
||||
|
||||
var sendAmountSompi uint64
|
||||
if !conf.IsSendAll {
|
||||
parsedAmountSompi, err := utils.KasToSompi(conf.SendAmount)
|
||||
sendAmountSompi, err = utils.KasToSompi(conf.SendAmount)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
sendAmountSompi = parsedAmountSompi
|
||||
}
|
||||
|
||||
createUnsignedTransactionsResponse, err :=
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user