☂️ Beauty fixes #179
Labels
enhancement
Improvement of an existing feature
good first issue
Good for newcomers
help wanted
Extra attention is needed
umbrella
Umbrella issue
Milestone
List of oddities that we noticed in go-perun will be collected here for triage:
channel.Nonce
is modelled as a*big.Int
but describes a[]byte
which can cause issues with negative number encoding.NewFundingReq
returns a*FundingReq
(per convention) butFunder.Fund
accepts aFundingReq
.if
wallet.Address
needs only to be anEncoder
, notSerializer
. Decoding is handled by the backend anyway. (Done in 193 rename wallettest variable #194)channel/backend.Verify
gets passed inParams
but expects the implementation to ignore them (Done in Channel.Backend: Remove Params from Sign and Verify #196).Params.ID
should be calculated on the fly to avoid inconsistencies. Members of Params are exported, but should be read only (TBD [channel] Params.id may be inconsistent with object properties #188).AdjudicatorReq.Acc
andAdjudicatorReq.Idx
are not needed forAdjudicator.Register
. We could createtype RegisterReq
specifically for registering.Adjudicator.Withdraw
could take the beneficiary as a parameter. (Currently, the beneficiary is a property of the adjudicator.)ErrAccountNotFound
orErrWrongAddrType
.NewAssetFundingError
since we also haveNewFundingTimeoutError
and they need each other.NewAdjudicatorReq
.WithCommitTx
is missing a comment.local/watcher.go
contains two wrong usages ofDebugf
Please extend this list.
👉 Related issues will be moved to Milestone Beautification.
The text was updated successfully, but these errors were encountered: