Giter Club home page Giter Club logo

Comments (7)

tony-iqlusion avatar tony-iqlusion commented on May 28, 2024 1

@rnbguy that one's probably fine because it's in its own namespace, whereas the Validators struct/enum are in the same namespace and therefore the generated code doesn't compile

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on May 28, 2024

@jkilpatr @ChristianBorst are you aware of an upstream tracking issue in cosmos-sdk about the clashing names in the protos?

from cosmos-rust.

rnbguy avatar rnbguy commented on May 28, 2024

There is also a related case - cosmos.base.abci.v1beta1.Result. It conflicts with std::result::Result.

from cosmos-rust.

beatriz-web3 avatar beatriz-web3 commented on May 28, 2024

same issue

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on May 28, 2024

I opened an upstream issue here: cosmos/cosmos-sdk#12316

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on May 28, 2024

#275 automates the patching process, using the following names:

  • pub struct Validators (same as original generated code)
  • pub enum Policy (as suggested in cosmos/cosmos-sdk#12316)

Still, it would be good to find a solution for this issue that doesn't involve patching generated code.

from cosmos-rust.

tony-iqlusion avatar tony-iqlusion commented on May 28, 2024

Going to go ahead and close this as there is now an automated solution.

Fixing the name clash is tracked as cosmos/cosmos-sdk#12316

from cosmos-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.