Skip to content

Commit

Permalink
upgraded juno version
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Dec 29, 2023
1 parent e87fa99 commit f9168b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/AssetMantle/node v1.0.0
github.com/cometbft/cometbft v0.37.2
github.com/cosmos/cosmos-sdk v0.45.16
github.com/forbole/juno/v4 v4.2.1-0.20230704040123-a274ebda943e
github.com/forbole/juno/v4 v4.2.1-0.20231227090829-9e0702ab304f
github.com/go-co-op/gocron v1.19.0
github.com/gogo/protobuf v1.3.3
github.com/jmoiron/sqlx v1.3.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA=
github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
github.com/forbole/juno/v4 v4.2.1-0.20230704040123-a274ebda943e h1:Rpxq5LL2KHvdak2NMGGyIQrpTfmjNyAqYhLcdRpJPYY=
github.com/forbole/juno/v4 v4.2.1-0.20230704040123-a274ebda943e/go.mod h1:7m5S3kqXTDP8C5H4psqgDDVbPa3vZcMK8uLsN/I9Qio=
github.com/forbole/juno/v4 v4.2.1-0.20231227090829-9e0702ab304f h1:bHQEpTw81ZTn96ZRpNNXA7zt6mZT411eZLQUXeSQc+w=
github.com/forbole/juno/v4 v4.2.1-0.20231227090829-9e0702ab304f/go.mod h1:7m5S3kqXTDP8C5H4psqgDDVbPa3vZcMK8uLsN/I9Qio=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4=
github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20=
Expand Down
2 changes: 1 addition & 1 deletion modules/auth/handle_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

// HandleMsg implements modules.MessageModule
func (m *Module) HandleMsg(_ int, msg sdk.Msg, tx *juno.Tx) error {
addresses, err := m.messagesParser(m.cdc, msg)
addresses, err := m.messagesParser(tx)
if err != nil {
log.Error().Str("module", "auth").Err(err).
Str("operation", "refresh account").
Expand Down
7 changes: 3 additions & 4 deletions modules/registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (

"github.com/forbole/bdjuno/v4/modules/slashing"

"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
jmodules "github.com/forbole/juno/v4/modules"
"github.com/forbole/juno/v4/modules/messages"
"github.com/forbole/juno/v4/modules/registrar"
Expand All @@ -31,12 +29,13 @@ import (
"github.com/forbole/bdjuno/v4/modules/pricefeed"
"github.com/forbole/bdjuno/v4/modules/staking"
"github.com/forbole/bdjuno/v4/modules/upgrade"
juno "github.com/forbole/juno/v4/types"
)

// UniqueAddressesParser returns a wrapper around the given parser that removes all duplicated addresses
func UniqueAddressesParser(parser messages.MessageAddressesParser) messages.MessageAddressesParser {
return func(cdc codec.Codec, msg sdk.Msg) ([]string, error) {
addresses, err := parser(cdc, msg)
return func(tx *juno.Tx) ([]string, error) {
addresses, err := parser(tx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f9168b6

Please sign in to comment.