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

[bcs] Add deserialization of RawTransactionWithData #41

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

gregnazario
Copy link
Contributor

Description

This was requested for cross language support of SDKs

Test Plan

Related Links

@gregnazario gregnazario force-pushed the add-raw-transaction-with-data-deserialize branch from b70e15f to df08ec4 Compare November 7, 2024 20:38
@gregnazario gregnazario enabled auto-merge (squash) November 8, 2024 16:32
Comment on lines +83 to +88
if enum_type == 0:
return MultiAgentRawTransaction.deserialize_inner(deserializer)
elif enum_type == 1:
return FeePayerRawTransaction.deserialize_inner(deserializer)
else:
raise Exception("Unhandled RawTransaction enum type")
Copy link
Contributor

Choose a reason for hiding this comment

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

Slightly spooky, vs making use of bindings or whatever, but I guess the whole Python SDK is like this lol so it's alright. Since these magic numbers appear multiple times some constants could be good at least.

@gregnazario gregnazario merged commit 5a3029e into main Nov 8, 2024
8 of 10 checks passed
@gregnazario gregnazario deleted the add-raw-transaction-with-data-deserialize branch November 8, 2024 17:15
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.

3 participants