-
Notifications
You must be signed in to change notification settings - Fork 690
Tamjid/pfm homecoming #8285
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
base: main
Are you sure you want to change the base?
Tamjid/pfm homecoming #8285
Conversation
First commit. Porting minimum necessary files for a non broken codebase. Gradual update on this branch eventually will port all code from ibc-app -> ibc-go.
|
for key, value := range state.InFlightPackets { | ||
key := key | ||
value := value | ||
bz := k.cdc.MustMarshal(&value) | ||
store.Set([]byte(key), bz) | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
for k := range m.InFlightPackets { | ||
v := m.InFlightPackets[k] | ||
baseI := i | ||
{ | ||
size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) | ||
if err != nil { | ||
return 0, err | ||
} | ||
i -= size | ||
i = encodeVarintGenesis(dAtA, i, uint64(size)) | ||
} | ||
i-- | ||
dAtA[i] = 0x12 | ||
i -= len(k) | ||
copy(dAtA[i:], k) | ||
i = encodeVarintGenesis(dAtA, i, uint64(len(k))) | ||
i-- | ||
dAtA[i] = 0xa | ||
i = encodeVarintGenesis(dAtA, i, uint64(baseI-i)) | ||
i-- | ||
dAtA[i] = 0x12 | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
for k, v := range m.InFlightPackets { | ||
_ = k | ||
_ = v | ||
l = v.Size() | ||
mapEntrySize := 1 + len(k) + sovGenesis(uint64(len(k))) + 1 + l + sovGenesis(uint64(l)) | ||
n += mapEntrySize + 1 + sovGenesis(uint64(mapEntrySize)) | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map Warning
Description
closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.