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: marshal old tx body if unordered not used #22723

Merged
merged 10 commits into from
Jan 13, 2025
Merged

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Dec 2, 2024

Description

Due to the new additions of two new fields in the tx body: unordered and timeout, v0.52 clients aren't compatible with lower version anymore.

While always checking unknown fields is crucial, the client library of the SDK doesn't need to marshal all fields of the tx.
Meaning, a tx where unordered and/or timeout are set, will fail in 0.50 with a v0.52 client, when you don't make use of that feature, you should still be able to use the v0.52 client.


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, you can find examples of the prefixes below:
  • confirmed ! in 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
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • updated the relevant documentation or specification, including comments for documenting Go code
  • 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.

Please see Pull Request Reviewer section in the contributing guide for more information on how to review a pull request.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • New Features

    • Added TxBodyCompat message type for backward compatibility in transaction handling.
    • Introduced a new message to support older chain versions.
  • Refactor

    • Removed ProtoCodecMarshaler interface to simplify code structure.
    • Added local replace directive for cosmossdk.io/api module in go.mod.
    • Updated transaction body construction logic to accommodate unordered transactions.

@julienrbrt julienrbrt requested review from JulianToledano and a team as code owners December 2, 2024 20:47
Copy link
Contributor

coderabbitai bot commented Dec 2, 2024

📝 Walkthrough

Walkthrough

This pull request introduces changes across multiple files to enhance transaction compatibility and simplify codec implementation. The primary modifications include removing the ProtoCodecMarshaler interface in the codec package, adding a new TxBodyCompat message type for backward compatibility in transaction handling, and updating the go.mod file with a local replace directive for the cosmossdk.io/api module.

Changes

File Change Summary
codec/proto_codec.go Removed ProtoCodecMarshaler interface, simplifying codec implementation
api/cosmos/tx/v1beta1/tx.pulsar.go Added TxBodyCompat message for backward compatibility
proto/cosmos/tx/v1beta1/tx.proto Introduced new TxBodyCompat message type
go.mod Added replace directive for cosmossdk.io/api to local path
tests/go.mod Added replace directive for cosmossdk.io/api to local path
x/auth/tx/builder.go Modified getTx method to conditionally create transaction body
baseapp/abci_utils_test.go Updated buildMsg function to include unordered parameter
tests/integration/baseapp/block_gas_test.go Adjusted baseGas value in TestBaseApp_BlockGas

Possibly related issues

Possibly related PRs

Suggested reviewers

  • tac0turtle
  • alpe
  • lucaslopezf
  • kocubinski
  • testinginprod

📜 Recent review details

Configuration used: .coderabbit.yml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3b379ef and fcf1ef7.

📒 Files selected for processing (2)
  • baseapp/abci_utils_test.go (9 hunks)
  • tests/integration/baseapp/block_gas_test.go (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • tests/integration/baseapp/block_gas_test.go
🧰 Additional context used
📓 Path-based instructions (1)
baseapp/abci_utils_test.go (2)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.


Pattern **/*_test.go: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"

⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: test-system-v2
  • GitHub Check: Analyze
  • GitHub Check: Summary
🔇 Additional comments (5)
baseapp/abci_utils_test.go (5)

7-7: LGTM!

The addition of the "time" import is necessary to support the new unordered transaction functionality.


Line range hint 726-750: LGTM! Function signature updated with unordered transaction support.

The buildMsg function has been enhanced to support unordered transactions:

  1. Added unordered parameter to control transaction ordering
  2. Sets timeout timestamp when transaction is unordered
  3. Implementation follows best practices for handling unordered transactions

647-647: Verify the adjusted MaxTxBytes values.

The test case MaxTxBytes values have been updated to accommodate the new transaction sizes. Please ensure these values provide adequate coverage for both ordered and unordered transactions.

Also applies to: 655-655, 664-664

✅ Verification successful

MaxTxBytes values are correctly configured for the test scenarios

The values (361 and 527 bytes) are precisely calculated to test specific transaction combinations while verifying sequence handling for both ordered and unordered transactions. Each value matches its test case's expectations, as evidenced by the expectedTxs fields.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for other test files that might need MaxTxBytes adjustments
# Search for other test files with MaxTxBytes configurations

rg "MaxTxBytes.*[0-9]+" --type go

Length of output: 1453


Script:

#!/bin/bash
# Get the test context around these MaxTxBytes values
rg -B 5 -A 5 "MaxTxBytes: (180|263)" baseapp/abci_utils_test.go

Length of output: 1036


503-506: Verify the transaction size assertions.

The test assertions for transaction sizes have been updated. Please ensure these new sizes accurately reflect the changes in transaction structure, particularly with the addition of unordered transaction fields.

✅ Verification successful

The transaction size assertions are accurate and consistent.

The test is correctly asserting the specific transaction sizes:

  • Raw transaction size: 152 bytes
  • Proto-encoded size: 155 bytes (includes 3 bytes proto encoding overhead)

The size calculation method is used consistently across the codebase for mempool selection and block proposal preparation. Other test files use the same calculation method but with their own test-specific data, so no additional updates are needed.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify transaction size calculations in other test files
# Look for other test files that might need similar transaction size updates

rg -l "ComputeProtoSizeForTxs" --type go

Length of output: 153


Script:

#!/bin/bash
# Check for size-related assertions in test files
rg -A 2 "ComputeProtoSizeForTxs" --type go

# Look for transaction structure definition
ast-grep --pattern 'message Tx {
  $$$
}'

# Check the implementation file
cat baseapp/abci_utils.go

Length of output: 21248


626-634: Verify the updated transaction size assertions.

Multiple transaction size assertions have been updated. These changes appear to accommodate the new unordered transaction fields. Please ensure these sizes are accurate and consistent with the transaction structure changes.

✅ Verification successful

Transaction size assertions are correctly computed and verified

The size assertions are accurate and consistent with the transaction structure. Each size is deterministically calculated using cmttypes.ComputeProtoSizeForTxs on the protobuf-encoded transactions, reflecting the actual byte size of the encoded messages.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for similar transaction size tests that might need updates
# Search for other test files with transaction size assertions

rg "\.Require\(\)\.Equal\([0-9]+,.*size" --type go

Length of output: 664


Script:

#!/bin/bash
# Find testTxs initialization and size calculation logic
ast-grep --pattern 'testTxs := $$$'
ast-grep --pattern 'size = $$$'

# Look for the test function containing these assertions
rg -B 10 "\.Require\(\)\.Equal\(180, testTxs\[0\]\.size\)" baseapp/abci_utils_test.go

Length of output: 3410

Finishing Touches

  • 📝 Generate Docstrings (Beta)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

github-actions bot commented Dec 2, 2024

@julienrbrt your pull request is missing a changelog!

@julienrbrt julienrbrt marked this pull request as draft December 2, 2024 20:47
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.

Actionable comments posted: 1

🧹 Outside diff range and nitpick comments (2)
client/tx/tx.go (1)

137-137: Typo in comment: Change 'accross' to 'across'

There's a typo in the comment on line 137; 'accross' should be 'across'.

Apply this diff to correct the typo:

-// It helps the client to be compatible accross SDK versions.
+// It helps the client to be compatible across SDK versions.
🧰 Tools
🪛 golangci-lint (1.62.2)

137-137: accross is a misspelling of across

(misspell)

client/v2/tx/encoder.go (1)

26-26: Typo in comment: Change 'accross' to 'across'

There's a typo in the comment on line 26; 'accross' should be 'across'.

Apply this diff to correct the typo:

-// It helps the client to be compatible accross SDK versions.
+// It helps the client to be compatible across SDK versions.
🧰 Tools
🪛 golangci-lint (1.62.2)

26-26: accross is a misspelling of across

(misspell)

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 9d9c19c and cde6edb.

📒 Files selected for processing (6)
  • client/tx/factory.go (1 hunks)
  • client/tx/tx.go (3 hunks)
  • client/v2/tx/encoder.go (1 hunks)
  • codec/codec.go (1 hunks)
  • codec/json.go (1 hunks)
  • codec/proto_codec.go (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • client/tx/factory.go
🧰 Additional context used
📓 Path-based instructions (5)
client/v2/tx/encoder.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

codec/codec.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

codec/proto_codec.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

codec/json.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

client/tx/tx.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

🪛 golangci-lint (1.62.2)
client/v2/tx/encoder.go

26-26: accross is a misspelling of across

(misspell)

client/tx/tx.go

137-137: accross is a misspelling of across

(misspell)

🔇 Additional comments (6)
client/tx/tx.go (3)

12-12: LGTM: Necessary imports added

The added imports are appropriate and necessary for the new functionalities introduced in the code.

Also applies to: 17-18, 25-25


136-149: LGTM: Custom encoder implementation to skip unpopulated fields

The introduction of the custom encoder using clientProtoCodec to avoid emitting unpopulated fields enhances compatibility across SDK versions. The fallback mechanism to the default encoder ensures robustness in case of any issues with the custom encoder.

🧰 Tools
🪛 golangci-lint (1.62.2)

137-137: accross is a misspelling of across

(misspell)


456-468: LGTM: Implementation of clientProtoCodec and MarshalJSON method

The clientProtoCodec struct and its MarshalJSON method are correctly implemented to marshal messages while skipping empty fields. This aligns with the goal of improving compatibility and reducing unnecessary data in transaction encoding.

client/v2/tx/encoder.go (1)

25-29: LGTM: Setting EmitUnpopulated to false

Setting EmitUnpopulated: false in jsonMarshalOptions appropriately configures the JSON marshaling to omit unpopulated fields. This change enhances compatibility across SDK versions by preventing the inclusion of zero-value fields.

🧰 Tools
🪛 golangci-lint (1.62.2)

26-26: accross is a misspelling of across

(misspell)

codec/codec.go (1)

44-44: Verify the impact of commenting out mustEmbedCodec()

By commenting out mustEmbedCodec() in the Codec interface, the requirement for implementations to embed an official codec is removed. Please verify that this modification does not affect backward compatibility or lead to unintended side effects in codec implementations.

codec/proto_codec.go (1)

24-24: Confirm the removal of ProtoCodecMarshaler interface

The removal of the ProtoCodecMarshaler interface simplifies the codec structure. Ensure that this change does not impact any existing components that may rely on this interface and that all necessary functionalities are preserved.

codec/json.go Outdated
Comment on lines 40 to 41
jm := defaultJM
jm.EmitDefaults = false
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Avoid modifying the shared defaultJM variable

Modifying the shared defaultJM variable by changing its EmitDefaults field can introduce unintended side effects in other parts of the code that rely on defaultJM. Instead, create a new instance of jsonpb.Marshaler with the desired settings.

Apply this diff to fix the issue:

 func ProtoMarshalJSONSkipEmpty(msg proto.Message, resolver jsonpb.AnyResolver) ([]byte, error) {
-	jm := defaultJM
-	jm.EmitDefaults = false
+	jm := &jsonpb.Marshaler{OrigName: true, EmitDefaults: false, AnyResolver: nil}
 	if resolver != nil {
 		jm = &jsonpb.Marshaler{OrigName: true, EmitDefaults: false, AnyResolver: resolver}
 	}
📝 Committable 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. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
jm := defaultJM
jm.EmitDefaults = false
jm := &jsonpb.Marshaler{OrigName: true, EmitDefaults: false, AnyResolver: nil}
if resolver != nil {
jm = &jsonpb.Marshaler{OrigName: true, EmitDefaults: false, AnyResolver: resolver}
}

@julienrbrt
Copy link
Member Author

Turned out that didn't work. I'll check another way.

@julienrbrt julienrbrt changed the title fix(client): don't marshal zero-ed fields fix: marshal old tx body if unordered not used Jan 10, 2025
@julienrbrt julienrbrt marked this pull request as ready for review January 10, 2025 14:41
@@ -257,6 +257,7 @@ require (
// replace (
// <temporary replace>
// )
replace cosmossdk.io/api => ../../api
Copy link
Member Author

Choose a reason for hiding this comment

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

I'll have a follow-up to tag v8.0.1 and and bump it here and in the SDK.

@julienrbrt julienrbrt added the backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release label Jan 10, 2025
api/cosmos/tx/v1beta1/tx.pulsar.go Fixed Show fixed Hide fixed
api/cosmos/tx/v1beta1/tx.pulsar.go Fixed Show fixed Hide fixed
// This message is used to represent the transaction body before the unordered
// features was added. It is used to support backwards compatibility when user a newer
// client with an older chain.
message TxBodyPreUnorderedTxs {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we name this Legacy* to indicate that this is some kind of backwards compat struct?

Reading this name right now, it's unclear without reading the godoc what it actually is for

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure! I'll try to find a better name.
I am not sure about legacy however; it is too better

@github-actions github-actions bot removed the C:CLI label Jan 10, 2025
x.NonCriticalExtensionOptions = *clv.list
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.tx.v1beta1.TxBodyCompat"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.tx.v1beta1.TxBodyCompat"))
}
panic(fmt.Errorf("message cosmos.tx.v1beta1.TxBodyCompat does not contain field %s", fd.FullName()))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
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.

Actionable comments posted: 0

🧹 Nitpick comments (1)
api/cosmos/tx/v1beta1/tx.pulsar.go (1)

9562-9569: Consider adding validation for extension options

While the implementation is correct, consider adding validation to ensure extension options don't contain features incompatible with older clients.

Consider adding validation logic to check extension options compatibility when marshaling/unmarshaling.

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f09c2f7 and 3b379ef.

⛔ Files ignored due to path filters (2)
  • tests/go.sum is excluded by !**/*.sum
  • types/tx/tx.pb.go is excluded by !**/*.pb.go
📒 Files selected for processing (4)
  • api/cosmos/tx/v1beta1/tx.pulsar.go (38 hunks)
  • proto/cosmos/tx/v1beta1/tx.proto (1 hunks)
  • tests/go.mod (1 hunks)
  • x/auth/tx/builder.go (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • proto/cosmos/tx/v1beta1/tx.proto
🧰 Additional context used
📓 Path-based instructions (3)
tests/go.mod (1)

Pattern tests/**/*: "Assess the integration and e2e test code assessing sufficient code coverage for the changes associated in the pull request"

x/auth/tx/builder.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

api/cosmos/tx/v1beta1/tx.pulsar.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

🪛 GitHub Actions: CodeQL
x/auth/tx/builder.go

[error] 120-120: Undefined type error: txv1beta1.TxBodyCompat is not defined

🪛 GitHub Check: CodeQL
api/cosmos/tx/v1beta1/tx.pulsar.go

[warning] 4028-4028: Panic in BeginBock or EndBlock consensus methods
Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt


[warning] 4030-4030: Panic in BeginBock or EndBlock consensus methods
Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Summary
🔇 Additional comments (6)
x/auth/tx/builder.go (2)

119-136: Verify backward compatibility with v0.50 clients

The conditional logic for selecting between TxBodyCompat and TxBody looks correct and aligns with the PR objective. This ensures compatibility with v0.50 clients when new features aren't used.

Let's verify the transaction handling in v0.50:

✅ Verification successful

Backward compatibility with v0.50 clients is correctly implemented

The conditional logic for selecting between TxBodyCompat and TxBody is properly implemented and aligns with the protobuf definitions in v0.50. The code ensures older clients can decode transactions by using TxBodyCompat when new features are not used.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for transaction body handling in v0.50 code
rg "TxBody" -A 5 -g "*/tx/*.go"

Length of output: 19718

🧰 Tools
🪛 GitHub Actions: CodeQL

[error] 120-120: Undefined type error: txv1beta1.TxBodyCompat is not defined


117-136: ⚠️ Potential issue

Fix undefined TxBodyCompat type error

The CodeQL analysis indicates that txv1beta1.TxBodyCompat is undefined. This type needs to be defined in the proto files before it can be used here.

Let's verify if the proto definition exists:

🧰 Tools
🪛 GitHub Actions: CodeQL

[error] 120-120: Undefined type error: txv1beta1.TxBodyCompat is not defined

tests/go.mod (1)

238-238: LGTM: Local API module replacement

The addition of the replace directive for cosmossdk.io/api is appropriate for testing the compatibility changes with the local API module.

api/cosmos/tx/v1beta1/tx.pulsar.go (3)

9546-9553: Good documentation of message handling in comments

The comments clearly explain the purpose and behavior of the messages field, which is crucial for maintaining compatibility.


10197-10214: Verify protobuf field numbers are preserved

The field numbers in TxBodyCompat match those in TxBody which is crucial for wire compatibility.

Let's verify the protobuf definitions:

✅ Verification successful

Field numbers and types are preserved correctly

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for protobuf definitions to compare field numbers
rg "cosmos.tx.v1beta1.TxBody" -A 10
rg "cosmos.tx.v1beta1.TxBodyCompat" -A 10

Length of output: 57401


9537-9570: Implementation of TxBodyCompat looks correct for backwards compatibility

The TxBodyCompat type properly excludes the new fields (unordered and timeout_timestamp) while maintaining all other fields from TxBody, which aligns with the goal of supporting older clients.

Let's verify that TxBodyCompat is used correctly in the codebase:

✅ Verification successful

TxBodyCompat implementation and usage verified

The implementation correctly supports backwards compatibility by:

  • Excluding new fields (unordered, timeout_timestamp) while maintaining all other TxBody fields
  • Proper integration in transaction builder (x/auth/tx/builder.go)
  • Complete protobuf support for serialization/deserialization
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for TxBodyCompat usage to ensure proper integration
rg -A 5 "TxBodyCompat"

Length of output: 46783

@julienrbrt julienrbrt enabled auto-merge January 13, 2025 11:00
@julienrbrt julienrbrt added this pull request to the merge queue Jan 13, 2025
Merged via the queue into main with commit 9ca815c Jan 13, 2025
76 of 77 checks passed
@julienrbrt julienrbrt deleted the julien/loosen-codec branch January 13, 2025 14:12
mergify bot pushed a commit that referenced this pull request Jan 13, 2025
(cherry picked from commit 9ca815c)

# Conflicts:
#	api/cosmos/tx/v1beta1/tx.pulsar.go
#	go.mod
#	simapp/v2/go.mod
#	simapp/v2/go.sum
@julienrbrt julienrbrt mentioned this pull request Jan 13, 2025
12 tasks
julienrbrt added a commit that referenced this pull request Jan 13, 2025
)

Co-authored-by: Julien Robert <julien@rbrt.fr>
@mergify mergify bot mentioned this pull request Jan 13, 2025
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.52.x PR scheduled for inclusion in the v0.52's next stable release C:x/auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants