Skip to content

feat: Add Tx hash to TransactionInfo and make it non exhaustive #2480

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

Merged
merged 18 commits into from
May 14, 2025

Conversation

kulikthebird
Copy link
Member

No description provided.

@kulikthebird kulikthebird marked this pull request as ready for review May 13, 2025 08:00
@kulikthebird kulikthebird linked an issue May 13, 2025 that may be closed by this pull request
1 task
@webmaster128
Copy link
Member

I's also add the new transaction hash field here, a feature that was requested multiple times

@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch 3 times, most recently from 7903df5 to 46187ac Compare May 13, 2025 10:22
@kulikthebird kulikthebird changed the title chore: Make the TransactionInfo struct non exhaustive feat: Add Tx checksum to TransactionInfo and make it non exhaustive May 13, 2025
@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch from 7008f89 to da35964 Compare May 13, 2025 10:48
@kulikthebird
Copy link
Member Author

I've added the transaction checksum to the struct. Unless we make it optional, CosmWasm v3.0 won't be compatible with pre v3.0 blockchains.

@chipshort
Copy link
Collaborator

I've added the transaction checksum to the struct. Unless we make it optional, CosmWasm v3.0 won't be compatible with pre v3.0 blockchains.

What if we only add it if cosmwasm_3_0 is enabled? That will cause a problem with the constructor, but I think we can work around that somehow.

@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch 2 times, most recently from 3d1a741 to 94a30fb Compare May 13, 2025 14:26
@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch from 94a30fb to 4ef6621 Compare May 13, 2025 14:27
@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch from 7801b00 to 2fbdb6a Compare May 14, 2025 11:12
@kulikthebird kulikthebird requested a review from chipshort May 14, 2025 11:13
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
@kulikthebird kulikthebird changed the title feat: Add Tx checksum to TransactionInfo and make it non exhaustive feat: Add Tx hash to TransactionInfo and make it non exhaustive May 14, 2025
/// to be built in libraries like cw-multi-test.
macro_rules! impl_hidden_constructor {
( $response:ty, $( $field: ident : $t: ty),* ) => {
impl $response {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can generalize this variable name. $my_struct?

kulikthebird and others added 6 commits May 14, 2025 15:33
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
Co-authored-by: Simon Warta <2603011+webmaster128@users.noreply.github.com>
@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch from 24b6b44 to 6fa5775 Compare May 14, 2025 13:37
@kulikthebird kulikthebird force-pushed the tkulik/chore/transaction_info_non_exhaustive branch from a2fbc31 to 6a4d45b Compare May 14, 2025 13:46
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

🐎🐎🐎

@kulikthebird kulikthebird merged commit 75a130a into main May 14, 2025
42 checks passed
@kulikthebird kulikthebird deleted the tkulik/chore/transaction_info_non_exhaustive branch May 14, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make TransactionInfo non_exhaustive
3 participants