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

Update passing string as error with object #38

Closed
oa-s opened this issue Mar 3, 2023 · 0 comments · Fixed by #39
Closed

Update passing string as error with object #38

oa-s opened this issue Mar 3, 2023 · 0 comments · Fixed by #39
Assignees

Comments

@oa-s
Copy link

oa-s commented Mar 3, 2023

instead of using error we need to pass object {message: "error mesage", code: 1}
@hboon could u please make pr to this repo with changes, needs for AlphaWallet/alpha-wallet-ios#6456
we actually need to use
const response = {'id': id, jsonrpc: '2.0', result: value, error: error } instead of
const response = {'id': id, jsonrpc: '2.0', result: value, error: {message: error} }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants