Skip to content

Refactor CalculateGas to use proto-generated service client #7726

Closed
@amaury1093

Description

Summary of Refactor

Use the generated tx service client instead of hardcoding the gRPC route

ref: #7688 (comment)

Version

82f15f3

Description

Currently, the calculate gas makes a Tendermint query with a hardcoded gRPC route to the simulate service. This works, but we should prefer to use the generated client.

Proposed Refactor

txServiceClient = tx.NewServiceClient(clientCtx)
txServiceClient.Simulate(...)

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type: Code HygieneGeneral cleanup and restructuring of code to provide clarity, flexibility, and modularity.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions