Set variables directly from utils.KasToSompi

Use = instead of := to ensure no shadowing
This commit is contained in:
coderofstuff 2023-09-22 08:45:26 -06:00
parent 03159b335e
commit 205573d217

View File

@ -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 :=