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

rpc_command hook passes wrong payload #3558

Closed
fiatjaf opened this issue Mar 2, 2020 · 0 comments · Fixed by #3560
Closed

rpc_command hook passes wrong payload #3558

fiatjaf opened this issue Mar 2, 2020 · 0 comments · Fixed by #3560

Comments

@fiatjaf
Copy link
Contributor

fiatjaf commented Mar 2, 2020

According to the documentation (and the standard from other hooks) rpc_command should pass the following payload to the plugin:

{
    "rpc_command": {
        "id": 3,
        "method": "method_name",
        "params": {
            "param_1": [],
            "param_2": {},
            "param_n": "",
        }
    }
}

However what they do send is

{
    "rpc_command": {
        "rpc_command": {
            "id": 3,
            "method": "method_name",
            "params": {
                "param_1": [],
                "param_2": {},
                "param_n": "",
            }
        }
    }
}
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 a pull request may close this issue.

1 participant