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

tweaks the response for invoke host fns to expose fn name and args #20

Closed
wants to merge 1 commit into from

Conversation

aristidesstaffieri
Copy link
Contributor

Tweaks the history response for a Mercury change, pulling the fn args/name from the HostFunction instead of expecting an tx_envelope.
Tweaks the metrics reporter for Horizon calls to avoid alerting on NotFound errors.

const hostFn = xdr.HostFunction.fromXDR(
Buffer.from(edge.node.hostFunction, "base64")
);
const invocation = hostFn.invokeContract();
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what your requirements are in terms of operations you display, but it's worth pointing out that host invocations can also be create contract and uploadcontractwasm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hey thanks for the info there, the client ignores those types for now but we may pull those into history in the future as well.

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