-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min amount per deposit #4
Conversation
eeeb1a7
to
8630c2f
Compare
types/coin.go
Outdated
for denom, cL := range uniqCoins { //#nosec | ||
comboCoin := Coin{Denom: denom, Amount: NewInt(0)} | ||
for _, c := range cL { | ||
comboCoin = comboCoin.Add(c) | ||
} | ||
if !comboCoin.IsZero() { | ||
coalesced = append(coalesced, comboCoin) | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
errors/abci.go
Outdated
|
||
import ( | ||
"fmt" | ||
"reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
errors/errors.go
Outdated
|
||
import ( | ||
"fmt" | ||
"reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
errors/stacktrace.go
Outdated
import ( | ||
"fmt" | ||
"io" | ||
"runtime" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoreflect "google.golang.org/protobuf/reflect/protoreflect" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
descriptorpb "google.golang.org/protobuf/types/descriptorpb" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
anypb "google.golang.org/protobuf/types/known/anypb" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
descriptorpb "google.golang.org/protobuf/types/descriptorpb" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
anypb "google.golang.org/protobuf/types/known/anypb" | ||
timestamppb "google.golang.org/protobuf/types/known/timestamppb" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
protoiface "google.golang.org/protobuf/runtime/protoiface" | ||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||
io "io" | ||
reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
There are ALOT of linting issues, which I will slowly chip away at |
I think the entire Cosmos SDK codebase was merged here by mistake, while the idea was to cherry pick the x/gov modifications. A hint is the over 2000 files part of the PR most of which are additions. Just pointing it out fyi before it becomes even harder to revert without losing work done. Should also rebase onto main since we switched over having x/gov own types |
This was the minimal import of the cosmos-sdk that it took to cherry pick that commit. I know it's hard to believe but I started with the commit and simply kept importing packages/modules until I could build |
If you look at the PR https://github.com/cosmos/cosmos-sdk/pull/19312/files this is what it touches |
2db779d
to
2957c95
Compare
Please go the the
Preview
tab and select the appropriate sub-template:Cherry picking from https://github.com/informalsystems/cosmos-sdk/tree/masa/backport-18146-min-amount-per-deposit (related PR)
fix
,feat
, andrefactor
.