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

Added raw transaction to Transactions schema #180

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0xMelkor
Copy link

Motivation

Cryo is not providing a column to get a raw transaction. I think it can be useful for other devs.

Solution

I extended the Transactions schema to provide the raw additional field.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

if schema.has_column("n_input_bytes")
| schema.has_column("n_input_zero_bytes")
| schema.has_column("n_input_nonzero_bytes")
| schema.has_column("raw")
Copy link
Member

@sslivkoff sslivkoff Feb 14, 2024

Choose a reason for hiding this comment

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

move this and line 219 outside of the if block. the store! macro will perform a check of whether schema contains the raw column

Copy link
Author

Choose a reason for hiding this comment

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

Thank you. I fixed this.

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.

2 participants