-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: decrement types.Dec max length to keep decimal bits in DecimalPrecisionBits (backport #11772) (#11805) * fix: Bug reading password from a buffer when reader returns EOF (backport #11796) (#11810) * refactor: improve error messages (backport #11762) (#11887) * refactor: improve error messages (#11762) ## Description Closes: #XXXX * feat: add feegrant query to see allowances from a given granter (backport #10947) (#11885) * fix: grants by granter pagination `total` (#11813) (#11828) * refactor: remove redacted message (backport #11960) (#12002) * fix: index ante events for failed tx (backport: #12013) (#12017) * fix: Make rechecking a tx check the sequence number #12060 (#12062) (cherry picked from commit 8eaff8f) Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> * fix: cli `grants-by-grantee`, `grants-by-granter` cmds (backport #11983) (#12025) * fix: cli `grants-by-grantee`, `grants-by-granter` cmds (#11983) ## Description ref: #11362 * fix: add base account getter (backport #12154) (#12161) * fix: add base account getter (#12154) (cherry picked from commit a39be7b) # Conflicts: # CHANGELOG.md * fix conflict Co-authored-by: mmsqe <tqd0800210105@gmail.com> Co-authored-by: Julien Robert <julien@rbrt.fr> * refactor: Simplify SimulationManager setup (backport #12153) (#12159) * refactor: Simplify SimulationManager setup (#12153) (cherry picked from commit 544afb6) # Conflicts: # CHANGELOG.md # simapp/app.go * fix conflict * fix conflict Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr> * perf: modify DelegatorSharesInvariant for better performance (#12170) (#12179) * chore: remove direct reliance on staking from slashing (backport #12177) (#12181) * fix(upgrades): perform no-op if 'from' and 'to' migration version are equal (#12174) (#12192) * chore(types): add MustAccAddressFromBech32 util func (backport #12201) (#12205) * Revert "fix: add base account getter (backport #12154) (#12161)" (#12213) * chore: prep release notes + cl (#12207) * fix: install tparse workflow Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: yihuang <huang@crypto.com> Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> Co-authored-by: mmsqe <tqd0800210105@gmail.com> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
- Loading branch information
1 parent
61366e1
commit 9be8f9f
Showing
75 changed files
with
2,540 additions
and
1,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Cosmos SDK v0.45.4 Release Notes | ||
# Cosmos SDK v0.45.5 Release Notes | ||
|
||
This release introduces a few bug fixes and improvements. Notably, it adds an | ||
error check to the `NewNode` call in the `server` package, which would allow nodes | ||
to sync correctly. | ||
This release introduces a few bug fixes and improvements. Notably, it removes | ||
the redacted error message, fixes a few bugs in the `types` package, and | ||
indexing of events for failed txs. | ||
|
||
See the [Cosmos SDK v0.45.4 Changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.45.4/CHANGELOG.md) | ||
See the [Cosmos SDK v0.45.5 Changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.45.5/CHANGELOG.md) | ||
for the exhaustive list of all changes. | ||
|
||
**Full Commit History**: https://github.com/cosmos/cosmos-sdk/compare/v0.45.3...v0.45.4 | ||
**Full Commit History**: https://github.com/cosmos/cosmos-sdk/compare/v0.45.4...v0.45.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package input | ||
|
||
import ( | ||
"bufio" | ||
"errors" | ||
"io" | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
type fakeReader struct { | ||
fnc func(p []byte) (int, error) | ||
} | ||
|
||
func (f fakeReader) Read(p []byte) (int, error) { | ||
return f.fnc(p) | ||
} | ||
|
||
var _ io.Reader = fakeReader{} | ||
|
||
func TestReadLineFromBuf(t *testing.T) { | ||
var fr fakeReader | ||
|
||
t.Run("it correctly returns the password when reader returns EOF", func(t *testing.T) { | ||
fr.fnc = func(p []byte) (int, error) { | ||
return copy(p, []byte("hello")), io.EOF | ||
} | ||
buf := bufio.NewReader(fr) | ||
|
||
pass, err := readLineFromBuf(buf) | ||
require.NoError(t, err) | ||
require.Equal(t, "hello", pass) | ||
}) | ||
|
||
t.Run("it returns EOF if reader has been exhausted", func(t *testing.T) { | ||
fr.fnc = func(p []byte) (int, error) { | ||
return 0, io.EOF | ||
} | ||
buf := bufio.NewReader(fr) | ||
|
||
_, err := readLineFromBuf(buf) | ||
require.ErrorIs(t, err, io.EOF) | ||
}) | ||
|
||
t.Run("it returns the error if it's not EOF regardles if it read something or not", func(t *testing.T) { | ||
expectedErr := errors.New("oh no") | ||
fr.fnc = func(p []byte) (int, error) { | ||
return copy(p, []byte("hello")), expectedErr | ||
} | ||
buf := bufio.NewReader(fr) | ||
|
||
_, err := readLineFromBuf(buf) | ||
require.ErrorIs(t, err, expectedErr) | ||
}) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.