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

PKG -- [transport-grpc] Add blockId to transaction status #1206

Merged
merged 16 commits into from
Jun 1, 2022

Conversation

jribbink
Copy link
Contributor

To be merged after #1205

@changeset-bot
Copy link

changeset-bot bot commented May 25, 2022

🦋 Changeset detected

Latest commit: cea93e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@onflow/transport-grpc Minor
@onflow/protobuf Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jribbink jribbink linked an issue May 25, 2022 that may be closed by this pull request
2 tasks
Copy link
Member

@JeffreyDoyle JeffreyDoyle left a comment

Choose a reason for hiding this comment

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

Just the one comment. The update looks good!

packages/transport-grpc/src/send-get-transaction-status.js Outdated Show resolved Hide resolved
payload: {type: "String", value: "Hello, Flow"}
}
]
blockId:
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@jribbink
Copy link
Contributor Author

jribbink commented Jun 1, 2022

Just updating docs on this one and it will be ready to go

@jribbink jribbink force-pushed the jribbink/block-id-transport-grpc branch from 689814d to ceb92b3 Compare June 1, 2022 18:20
status: res.getStatus(),
statusString: STATUS_MAP[res.getStatus()],
statusCode: res.getStatusCode(),
errorMessage: res.getErrorMessage(),
events: events.map(event => ({
type: event.getType(),
transactionId: u8ToHex(event.getTransactionId_asU8(), context),
transactionId: nonEmptyU8ToHex(event.getTransactionId_asU8(), context),
Copy link
Member

Choose a reason for hiding this comment

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

Is this ever empty? AFAIK events will always have a transactionId associated. I think we should use the old u8ToHex in this case?

@jribbink jribbink merged commit 6ae4469 into master Jun 1, 2022
@jribbink jribbink deleted the jribbink/block-id-transport-grpc branch June 1, 2022 21:45
@github-actions github-actions bot mentioned this pull request Jun 24, 2022
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.

"block_id" is not available on transaction result response
2 participants