AlphaWallet / AlphaWallet-web3-provider

[Used in AlphaWallet]
MIT License
57 stars 37 forks source link

Update passing `string` as error with `object` #38

Closed oa-s closed 1 year ago

oa-s commented 1 year ago

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 https://github.com/AlphaWallet/alpha-wallet-ios/issues/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} }