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

Implementation of new Operations #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

palinko91
Copy link

This change solved problem #11 for me.
Refference ledger where I tested on mainnet: 52385298

Pretty important because I experienced errors when I subscribed to payment stream and if I didn't do unwrap_or(), just let the ? solve it then errored out because of serde. With this fix the new Operations can be handled.

@palinko91 palinko91 force-pushed the master branch 2 times, most recently from 5130930 to 42e57a4 Compare July 2, 2024 21:07
Copy link
Contributor

@bjorn bjorn left a comment

Choose a reason for hiding this comment

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

Sorry for the late response, apparently I didn't have full notifications enabled for this repository. The change looks good to me!

pub enum HostFunctionType {
HostFunctionTypeHostFunctionTypeInvokeContract,
HostFunctionTypeHostFunctionTypeCreateContract,
HostFunctionTypeHostFunctionTypeUploadContractWasm,
Copy link
Contributor

@bjorn bjorn Dec 6, 2024

Choose a reason for hiding this comment

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

I wondered why this was prefixed twice, but then I see it's done also at https://developers.stellar.org/docs/data/horizon/api-reference/resources/operations/object/invoke-host-function. Weird, heh.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it maybe make sense to remove the prefixes through renaming? Because when referring to this enum in Rust we now would get for example HostFunctionType::HostFunctionTypeHostFunctionTypeInvokeContract...

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