Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(client/tx): simulate with correct pk #18472

Merged
merged 10 commits into from
Nov 17, 2023

Conversation

JulianToledano
Copy link
Contributor

@JulianToledano JulianToledano commented Nov 15, 2023

Description

Closes:
#17711


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • run make lint and make test
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

Summary by CodeRabbit

  • New Features

    • Enhanced transaction simulation by allowing the use of specific keys.
    • Improved key management for signature generation in transactions.
  • Bug Fixes

    • Fixed a data race issue in BaseApp.getContext.
    • Addressed consistency issues with viper prefix settings.
    • Resolved problems with transaction simulation tests.
  • Refactor

    • Renamed test packages for clarity and consistency.
    • Streamlined the use of types and functions in test files.
  • Tests

    • Added new tests for simulated public keys and signature data retrieval.
  • Documentation

    • Updated CHANGELOG with recent bug fixes and improvements.

@JulianToledano JulianToledano requested a review from a team as a code owner November 15, 2023 11:17
Copy link
Contributor

coderabbitai bot commented Nov 15, 2023

### Walkthrough
The changes involve updates to the Cosmos SDK, focusing on transaction simulation enhancements, bug fixes, and test improvements. A new `fromName` field is added to the `Factory` struct to manage key information for transactions. The testing suite is updated by renaming packages and adding new tests for simulation public keys and signature data. The changelog summarizes bug fixes, including a data race resolution, transaction simulation accuracy, and consistency in viper prefix settings.

### Changes

| File(s) | Summary |
| --- | --- |
| `client/tx/factory.go` | Introduced `fromName` field in `Factory` struct, updated `NewFactoryCLI` and `getSimPK` for key management, added `multisig` import, and added `getSimSignatureData` method for simulation transactions. |
| `client/tx/factory_test.go`, `client/tx/aux_builder_test.go`, `client/tx/legacy_test.go`, `client/tx/tx_test.go` | Renamed package from `tx_test` to `tx`, updated references, and added new test functions for simulation keys and signature data. |
| `CHANGELOG.md` | Documented bug fixes and improvements related to transaction simulation, data race resolution, and viper prefix consistency. |

> 🌟 In the code's woven tapestry, a rabbit hops with glee,  
> 🍂 As autumn leaves fall gently, bugs flee with a decree.  
> 🛠️ With each commit and merge, the SDK grows more free,  
> 🌐 A cosmos of code, evolving for you and me.

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • If you reply to a review comment from CodeRabbit, the bot will automatically respond.
  • To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
  • Note: Review comments are made on code diffs or files, not on the PR overview.
  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Note: For conversation with the bot, please use the review comments on code diffs or files.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

@github-actions github-actions bot added the C:CLI label Nov 15, 2023

This comment has been minimized.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 4ee4046 and 712d4a7.
Files selected for processing (1)
  • client/tx/factory.go (3 hunks)
Additional comments: 2
client/tx/factory.go (2)
  • 33-39: The addition of the fromName field to the Factory struct is a significant change. Ensure that all usages of the Factory struct throughout the codebase are updated to handle this new field appropriately. This may include serialization and deserialization logic if the struct is persisted or transmitted.

  • 93-99: The initialization of the fromName field in the NewFactoryCLI function is correct. It uses the FromName from the clientCtx, which should be the intended behavior for setting up the factory with the correct key name for transaction simulation and signing.

client/tx/factory.go Outdated Show resolved Hide resolved
@JulianToledano JulianToledano linked an issue Nov 15, 2023 that may be closed by this pull request
1 task
@julienrbrt julienrbrt added backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release labels Nov 15, 2023
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 712d4a7 and 6cc1feb.
Files selected for processing (1)
  • client/tx/factory.go (3 hunks)
Additional comments: 3
client/tx/factory.go (3)
  • 33-39: The addition of the fromName field to the Factory struct is a significant change. Ensure that all usages of the Factory struct throughout the codebase are updated to handle this new field appropriately. This includes initialization, serialization, and any other operations that might be performed on Factory instances.

  • 93-99: The initialization of the fromName field in the NewFactoryCLI function is correct. It uses the FromName field from the clientCtx which is expected to be populated with the name of the key to be used for the transaction. This is a critical change for the issue being addressed, as it ensures that the correct public key is used during transaction simulation.

  • 437-449: The modification to the getSimPK method to retrieve the public key using the fromName field is the core change that addresses the issue. It is important to ensure that the keybase is not nil and that the simulateAndExecute flag is true before attempting to retrieve the key. This prevents unnecessary keybase access when the user is only doing a dry run (--dry-run flag) and not an actual transaction simulation with execution (--gas=auto flag). The error handling and the default public key initialization look appropriate.

@odeke-em
Copy link
Collaborator

Thanks for the PR @JulianToledano! Is there a way that we can lock in a test for this behavior and to prevent regressions? Seems quite odd to me that we were using the wrong public key, but are also changing it though can't validate this change nor show which one fails. Thank you.

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this still requires use of the keyring, albeit it can use any key you provide. Ideally, we avoid the keyring all together? WDYT?

Have you tested with the steps in the original issue?

@JulianToledano
Copy link
Contributor Author

So this still requires use of the keyring, albeit it can use any key you provide. Ideally, we avoid the keyring all together? WDYT?

I think accessing to the keyring is needed at some point. We either access the keyring at factory construction time and load the pubkey as a field or create a WithSimPubKey(pk PubKey) kind of option but the only place to load it I think would be here:

func GenerateOrBroadcastTxCLI(clientCtx client.Context, flagSet *pflag.FlagSet, msgs ...sdk.Msg) error {
txf, err := NewFactoryCLI(clientCtx, flagSet)
if err != nil {
return err
}

Have you tested with the steps in the original issue?

Yes, although the main issue is reported on #18476. Real problem is we are always simulating with a SingleSignatureData. To be able to solve this we need to:

  1. Identify which kind of key is needed (normal or multisig).
  2. Create or load a key of that kind.
  3. In base of the key used select SingleSignatureData or MultiSignatureData for the SignatureV2.

@JulianToledano
Copy link
Contributor Author

Thanks for the PR @JulianToledano! Is there a way that we can lock in a test for this behavior and to prevent regressions?

Sure I can try to add one

@educlerici-zondax educlerici-zondax added the S:zondax Squad: Zondax label Nov 16, 2023
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 6cc1feb and 058d220.
Files selected for processing (2)
  • CHANGELOG.md (1 hunks)
  • client/tx/factory.go (6 hunks)
Additional comments: 6
client/tx/factory.go (6)
  • 15-21: The import of the multisig package is correctly placed in the import block, following Go conventions of grouping standard library, third-party, and own module imports separately. This change is necessary for the new functionality related to multisig keys.

  • 34-40: The addition of the fromName field to the Factory struct is a significant change. It is important to ensure that all parts of the code that instantiate or manipulate the Factory struct are aware of this new field and handle it appropriately. This change is necessary for the new functionality to specify the key name for transactions.

  • 94-100: The NewFactoryCLI function has been updated to initialize the fromName field with clientCtx.FromName. This is a critical change that ensures the fromName field is set correctly when the Factory is instantiated. It is important to ensure that the clientCtx.FromName is being set correctly upstream.

  • 409-415: The BuildSimTx function has been updated to create a SignatureV2 with a public key and signature data obtained from the new getSimSignatureData method. This change is crucial for ensuring that the simulation uses the correct public key and signature data format based on the key type. It is important to ensure that the SetSignatures method of the transaction builder can handle the SignatureV2 type correctly and that this change does not introduce any issues with transaction signing.

  • 436-448: The getSimPK method has been modified to retrieve the public key from the keybase using the fromName field if simulateAndExecute is true and the keybase is not nil. This is a critical change that ensures the correct public key is used for simulation. It is important to verify that the keybase properly handles the Key method and that the fromName field is being set with a valid key name.

  • 454-471: The new getSimSignatureData method determines the appropriate signature data type based on the public key type. This method handles both single and multisig public keys, creating a SingleSignatureData or MultiSignatureData as needed. This change is important for supporting different key types in transaction simulations. It is important to ensure that the signMode is set correctly for each signature data type and that the multisig threshold is respected.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 058d220 and 7217fba.
Files selected for processing (1)
  • client/tx/factory_test.go (1 hunks)
Additional comments: 3
client/tx/factory_test.go (3)
  • 1-2: The package name change from tx_test to tx means that the tests are no longer in a separate package. This could potentially expose test files to production builds and might allow access to internal package functions or variables that should not be exposed. Verify that this change is intentional and consider the implications of making test files part of the production package.

  • 46-92: The new test function TestFactory_getSimPK is well-structured and seems to cover the necessary cases for testing the retrieval of simulated public keys. However, ensure that the want field in the test cases is properly initialized with expected values rather than empty structs to make the tests meaningful.

  • 94-117: Similar to the previous test function, TestFactory_getSimSignatureData should also have the want field in the test cases initialized with expected values for the tests to be effective.

client/tx/factory_test.go Outdated Show resolved Hide resolved
@alexanderbez
Copy link
Contributor

Makes sense @JulianToledano -- let's proceed then 👍

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 7217fba and 8d3e693.
Files selected for processing (4)
  • client/tx/aux_builder_test.go (3 hunks)
  • client/tx/factory_test.go (1 hunks)
  • client/tx/legacy_test.go (1 hunks)
  • client/tx/tx_test.go (9 hunks)
Files skipped from review due to trivial changes (1)
  • client/tx/legacy_test.go
Additional comments: 14
client/tx/factory_test.go (3)
  • 1-19: The package name change from tx_test to tx and the removal of the tx. prefix in import paths is a significant change. Ensure that this does not introduce any circular dependencies and that the tests still run as expected in the new package structure.

  • 46-92: The new test function TestFactory_getSimPK is well-structured and tests the functionality of the getSimPK method. It checks for both simple and multisig keys, which is good for coverage. Ensure that the genKey function correctly sets up the keys in the keyring for the test cases.

  • 94-117: The new test function TestFactory_getSimSignatureData is also well-structured and tests the functionality of the getSimSignatureData method. It checks for both single and multisig public keys, which is good for coverage. Ensure that the getSimSignatureData method returns the correct type of signing.SignatureData for different public key types.

client/tx/aux_builder_test.go (2)
  • 1-10: The package name change from tx_test to tx and the removal of the tx import are consistent with the summary provided. This change will allow the test file to access unexported functions and types within the tx package, which is a common practice in Go for white-box testing.

  • 25-26: The addition of counterModule.RegisterInterfaces(reg) is necessary for the test case "GetAuxSignerData works for DIRECT_AUX" to ensure that the necessary interfaces are registered for the test to run successfully.

client/tx/tx_test.go (9)
  • 1-4: The package name change from tx_test to tx is significant as it changes the package from an external test package to the internal package. This allows the tests to access unexported functions, types, and constants within the tx package. Ensure that this change is intentional and that the tests still cover the intended functionality from an external perspective.

  • 9-19: The removal of the github.com/cosmos/cosmos-sdk/client/tx import is appropriate since the functions and types from the tx package are now being used directly without the tx. prefix due to the package name change. This is a good cleanup.

  • 80-86: The Factory struct is now being used without the tx. prefix, which is correct given the package name change. However, ensure that the Factory struct and its methods are correctly exported from the tx package to be used in this test file.

  • 89-95: The test case logic appears correct, and the renaming of CalculateGas function usage without the tx. prefix is consistent with the package name change. However, ensure that the CalculateGas function is correctly exported from the tx package.

  • 106-110: The mockTxFactory function is correctly updated to use Factory without the tx. prefix. Ensure that the Factory struct and its methods are correctly exported from the tx package.

  • 195-201: The test case for TestMnemonicInMemo is correctly updated to use Factory without the tx. prefix. Ensure that the Factory struct and its methods are correctly exported from the tx package.

  • 266-272: The test cases in TestSign are correctly updated to use Factory without the tx. prefix. Ensure that the Factory struct and its methods are correctly exported from the tx package.

  • 353-359: The test logic for TestSign appears correct, and the renaming of Sign function usage without the tx. prefix is consistent with the package name change. However, ensure that the Sign function is correctly exported from the tx package.

  • 408-414: The test case for TestPreprocessHook is correctly updated to use Factory without the tx. prefix. Ensure that the Factory struct and its methods are correctly exported from the tx package. Additionally, verify that the PreprocessTx function is correctly exported and that the PreprocessTxFn type is correctly handled within the tx package.

Comment on lines 199 to 205
for _, tc := range testcases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
b = tx.NewAuxTxBuilder()
b = NewAuxTxBuilder()
err := tc.malleate()

if tc.expErr {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The use of t.Run to run subtests is a good practice as it allows for running tests in parallel and provides better test output. However, the assignment b = NewAuxTxBuilder() inside the loop without using the := syntax will overwrite the b variable in the outer scope for each test case, which could lead to data races if tests are run in parallel. It's important to ensure that each test case is independent and does not affect the others.

To ensure that each test case has its own instance of AuxTxBuilder, you can modify the code as follows:

- b = NewAuxTxBuilder()
+ b := NewAuxTxBuilder()

This change will scope the b variable to each subtest, preventing data races and ensuring that each test case is isolated.


Commitable suggestion

[!IMPORTANT]
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
for _, tc := range testcases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
b = tx.NewAuxTxBuilder()
b = NewAuxTxBuilder()
err := tc.malleate()
if tc.expErr {
for _, tc := range testcases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
b := NewAuxTxBuilder()
err := tc.malleate()
if tc.expErr {

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@@ -200,7 +199,7 @@ func TestAuxTxBuilder(t *testing.T) {
for _, tc := range testcases {
tc := tc
t.Run(tc.name, func(t *testing.T) {
b = tx.NewAuxTxBuilder()
b = NewAuxTxBuilder()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was there a reason to change the package name?

Copy link
Member

@julienrbrt julienrbrt Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's for testing their private function getSimSignatureData and set fromName on the Factory that is usually private. For the latter, they could use clientCtx with a from name however.

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 8d3e693 and 7681068.
Files selected for processing (1)
  • CHANGELOG.md (1 hunks)
Additional comments: 1
CHANGELOG.md (1)
  • 69-69: The changelog entries are clear and provide direct links to the pull requests for detailed reference. It's good practice to include such links as it helps in tracking the changes and for anyone looking into the history of changes. The descriptions are concise and explain the nature of the fixes.

Copy link
Collaborator

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work and thank you @JulianToledano! Just one more round then LGTM.

client/tx/factory.go Outdated Show resolved Hide resolved
client/tx/factory_test.go Outdated Show resolved Hide resolved
client/tx/factory_test.go Outdated Show resolved Hide resolved
client/tx/factory_test.go Show resolved Hide resolved
client/tx/factory_test.go Outdated Show resolved Hide resolved
client/tx/factory_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 7681068 and efb92eb.
Files selected for processing (2)
  • client/tx/factory.go (6 hunks)
  • client/tx/factory_test.go (1 hunks)
Additional comments: 10
client/tx/factory_test.go (4)
  • 1-19: The package and import renaming from tx_test to tx and the associated import path updates are standard refactoring practices to maintain consistency after such changes. Ensure that the renaming does not conflict with other packages and that all references to the package within the codebase are updated accordingly.

  • 21-44: The TestFactoryPrepare function tests the Prepare method of the Factory struct. The tests seem to cover different scenarios, including offline context and setting specific account numbers and sequences. Ensure that the MockAccountRetriever is correctly mocking the expected behavior and that the test cases cover all relevant scenarios for the Prepare method.

  • 46-93: The TestFactory_getSimPKType function tests the getSimPK method of the Factory struct. The test cases cover different types of keys, including simple and multisig keys. It's important to ensure that the genKey function within each test case is generating the keys correctly and that the wantType accurately reflects the expected type of public key. The use of table-driven tests is a good practice for clarity and maintainability.

  • 95-119: The TestFactory_getSimSignatureData function tests the getSimSignatureData method of the Factory struct. The test cases are designed to check if the correct signature data type is returned for different types of public keys. Similar to the previous test function, ensure that the test cases are comprehensive and cover all possible public key types that the getSimSignatureData method is expected to handle.

client/tx/factory.go (6)
  • 15-21: The addition of new imports, especially the multisig package, should be verified to ensure they are used within the code and there are no unused imports left which can lead to unnecessary bloat.

  • 34-40: The addition of the fromName field to the Factory struct is a key change. Ensure that all references to the Factory struct throughout the codebase are updated to handle this new field if necessary. This change should be documented in the changelog to inform users of the update.

  • 94-100: The initialization of the fromName field within the NewFactoryCLI function is correct and aligns with the description provided in the pull request summary. This ensures that the fromName is set when the Factory is created, which is necessary for the new functionality to work as intended.

  • 409-415: The BuildSimTx function has been updated to include a new SignatureV2 structure with the public key obtained from getSimPK and signature data from getSimSignatureData. This is a crucial change for the simulation to work with the correct public key. Ensure that the Sequence is correctly set as it is used in the transaction signing process.

  • 436-448: The getSimPK method retrieves the public key from the keybase using the fromName. This is a significant change that addresses the issue mentioned in the pull request summary. Ensure that the simulateAndExecute flag is correctly interpreted and that the key retrieval logic is robust and handles possible errors gracefully.

  • 454-470: The new getSimSignatureData method is used to determine the correct SignatureData type based on the public key type. This is particularly important for multisig scenarios. Ensure that the logic correctly handles different types of public keys and that the multisig threshold is respected when creating the MultiSignatureData.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between efb92eb and 9169d83.
Files selected for processing (1)
  • client/tx/factory.go (6 hunks)
Additional comments: 6
client/tx/factory.go (6)
  • 15-21: The addition of the multisig package import is necessary for the new functionality related to handling multisig public keys. This change is appropriate given the context of the pull request.

  • 34-40: The addition of the fromName field to the Factory struct is a key part of the update, allowing the factory to store the name of the key to be used for transactions. This is a necessary change for the bug fix and is implemented correctly.

  • 94-100: The NewFactoryCLI function has been updated to initialize the fromName field with clientCtx.FromName. This change is consistent with the pull request's goal to ensure the correct public key is used during transaction simulation.

  • 409-415: The BuildSimTx function has been modified to use f.getSimSignatureData(pk) for setting signature data. This is a crucial change that allows the function to handle different types of public keys, especially in multisig scenarios. The implementation appears to be correct and aligns with the pull request's objectives.

  • 436-448: The getSimPK function has been modified to retrieve the public key from the keybase using the fromName. This change is essential for ensuring that the correct public key is used during simulation. The error handling and retrieval logic are correctly implemented.

  • 454-471: The new getSimSignatureData method is added to determine the correct signature data type for simulation transactions. This method handles the case for multisig public keys by creating a MultiSignatureData instance with the appropriate number of SingleSignatureData placeholders. The logic here is sound and matches the requirements for multisig transaction simulation.

Copy link
Collaborator

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and thank you @JulianToledano!

@julienrbrt julienrbrt added this pull request to the merge queue Nov 17, 2023
Merged via the queue into main with commit 80e0c63 Nov 17, 2023
59 of 60 checks passed
@julienrbrt julienrbrt deleted the julian/gas-simulation-incorrect-key branch November 17, 2023 21:24
mergify bot pushed a commit that referenced this pull request Nov 17, 2023
(cherry picked from commit 80e0c63)

# Conflicts:
#	client/tx/tx_test.go
mergify bot pushed a commit that referenced this pull request Nov 17, 2023
(cherry picked from commit 80e0c63)

# Conflicts:
#	CHANGELOG.md
#	client/tx/aux_builder_test.go
#	client/tx/factory_test.go
#	client/tx/tx_test.go
@faddat faddat mentioned this pull request Mar 20, 2024
12 tasks
emidev98 pushed a commit to terra-money/cosmos-sdk that referenced this pull request Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.47.x PR scheduled for inclusion in the v0.47's next stable release backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release C:CLI S:zondax Squad: Zondax
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Gas simulation uses incorrect key
5 participants