Skip to content

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.

@0xMelkor 0xMelkor requested a review from sslivkoff February 15, 2024 09:14
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