mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 06:25:55 +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
|
var sendAmountSompi uint64
|
||||||
if !conf.IsSendAll {
|
if !conf.IsSendAll {
|
||||||
parsedAmountSompi, err := utils.KasToSompi(conf.SendAmount)
|
sendAmountSompi, err = utils.KasToSompi(conf.SendAmount)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
sendAmountSompi = parsedAmountSompi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createUnsignedTransactionsResponse, err :=
|
createUnsignedTransactionsResponse, err :=
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user