Skip to content

Commit

Permalink
fix: min sequencer bond is returned as a coin (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs authored Dec 3, 2024
1 parent 6ad57d1 commit a3dde5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/cosmos/go-bip39 v1.0.0
github.com/docker/docker v27.0.3+incompatible
github.com/docker/go-connections v0.5.0
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20241130123033-f4b2029af117
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20241203120245-89d3abd36078
github.com/gogo/protobuf v1.3.3
github.com/ignite/cli v0.27.2
github.com/lib/pq v1.10.9
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA
github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU=
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20241130123033-f4b2029af117 h1:vPV0mxZunRtXKrdTGlLPIlbA5tl9mo4qC5EirjUUzw0=
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20241130123033-f4b2029af117/go.mod h1:0fjf73QSddz/55i6TNx47WebJHWQJoGC4kQzRN+RUD0=
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20241203120245-89d3abd36078 h1:obpxLKy5++CypmNW4+ROUCLboSI/FIlP+GUFeaqoYiM=
github.com/dymensionxyz/dymension/v3 v3.1.0-rc03.0.20241203120245-89d3abd36078/go.mod h1:kBpPNqUu9QvfGZwK6RmeYyjmbgISvlS+tcX4YC7nem0=
github.com/dymensionxyz/gerr-cosmos v1.1.0 h1:IW/P7HCB/iP9kgk3VXaWUoMoyx3vD76YO6p1fnubHVc=
github.com/dymensionxyz/gerr-cosmos v1.1.0/go.mod h1:n+0olxPogzWqFKba45mCpvrHLGmeS8W9UZjggHnWk6c=
github.com/dymensionxyz/osmosis/v15 v15.2.0-dymension-v1.1.2 h1:HvBvVm2SdhKn9RYEiW8IbrvoDL3SbQhYVFo+aj4ELUw=
Expand Down
6 changes: 1 addition & 5 deletions utils/sequencer/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ func GetMinSequencerBondInBaseDenom(raID string, hd consts.HubData) (*cosmossdkt

_ = json.Unmarshal(out.Bytes(), &qra)

c := cosmossdktypes.NewCoin(
consts.Denoms.Hub,
cosmossdkmath.NewIntFromUint64(qra.MinSequencerBond),
)

c := qra.MinSequencerBond[0]
return &c, nil
}

Expand Down

0 comments on commit a3dde5f

Please sign in to comment.