diff --git a/client/covenant/send.go b/client/covenant/send.go index f30aa97..5900175 100644 --- a/client/covenant/send.go +++ b/client/covenant/send.go @@ -208,7 +208,7 @@ func coinSelect(vtxos []vtxo, amount uint64, sortByExpirationTime bool) ([]vtxo, } if selectedAmount < amount { - return nil, 0, fmt.Errorf("not enough funds to cover amount%d", amount) + return nil, 0, fmt.Errorf("not enough funds to cover amount %d", amount) } change := selectedAmount - amount diff --git a/client/covenantless/send.go b/client/covenantless/send.go index 080b58d..80ea100 100644 --- a/client/covenantless/send.go +++ b/client/covenantless/send.go @@ -182,7 +182,7 @@ func coinSelect(vtxos []vtxo, amount uint64, sortByExpirationTime bool) ([]vtxo, } if selectedAmount < amount { - return nil, 0, fmt.Errorf("not enough funds to cover amount%d", amount) + return nil, 0, fmt.Errorf("not enough funds to cover amount %d", amount) } change := selectedAmount - amount diff --git a/pkg/client-sdk/internal/utils/utils.go b/pkg/client-sdk/internal/utils/utils.go index 2943a81..e2ee316 100644 --- a/pkg/client-sdk/internal/utils/utils.go +++ b/pkg/client-sdk/internal/utils/utils.go @@ -48,7 +48,7 @@ func CoinSelect( } if selectedAmount < amount { - return nil, 0, fmt.Errorf("not enough funds to cover amount%d", amount) + return nil, 0, fmt.Errorf("not enough funds to cover amount %d", amount) } change := selectedAmount - amount diff --git a/server/internal/core/application/covenantless.go b/server/internal/core/application/covenantless.go index e89cccb..d4a077f 100644 --- a/server/internal/core/application/covenantless.go +++ b/server/internal/core/application/covenantless.go @@ -673,8 +673,8 @@ func (s *covenantlessService) startFinalization() { signedTree, err := coordinator.SignTree() if err != nil { - round.Fail(fmt.Errorf("failed to aggragate tree signatures: %s", err)) - log.WithError(err).Warn("failed aggragate tree signatures") + round.Fail(fmt.Errorf("failed to aggregate tree signatures: %s", err)) + log.WithError(err).Warn("failed to aggregate tree signatures") return }