Skip to content

Commit

Permalink
style(wallet, channel): Fix error capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
iljabvh committed Feb 16, 2024
1 parent 25f6c78 commit ae05dd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions channel/adjudicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"time"
)

var ErrChannelAlreadyClosed = errors.New("Channel is already closed")
var ErrChannelAlreadyClosed = errors.New("channel is already closed")

type Adjudicator struct {
log log.Embedding
Expand Down Expand Up @@ -135,7 +135,6 @@ func (a *Adjudicator) GetChannelState(ctx context.Context, state *pchannel.State

func (a *Adjudicator) BuildWithdrawTxArgs(req pchannel.AdjudicatorReq) (xdr.ScVec, error) {

// build withdrawalargs
chanIDStellar := req.Tx.ID[:]
partyIdx := req.Idx
var withdrawIdx xdr.ScVal
Expand Down
2 changes: 1 addition & 1 deletion wallet/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (b backend) DecodeSig(reader io.Reader) (wallet.Sig, error) {
func (b backend) VerifySignature(msg []byte, sig wallet.Sig, a wallet.Address) (bool, error) {
p, ok := a.(*types.Participant)
if !ok {
return false, errors.New("Participant has invalid type")
return false, errors.New("participant has invalid type")
}
if len(sig) != ed25519.SignatureSize {
return false, errors.New("invalid signature size")
Expand Down

0 comments on commit ae05dd2

Please sign in to comment.