File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " hyperplay" ,
3
- "version" : " 0.15.0 " ,
3
+ "version" : " 0.15.1 " ,
4
4
"private" : true ,
5
5
"main" : " build/main/main.js" ,
6
6
"homepage" : " ./" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ const enabledTopics = [
17
17
'connect' ,
18
18
'message' ,
19
19
'disconnect' ,
20
- 'chainChanged'
20
+ 'chainChanged' ,
21
+ 'close' ,
22
+ // deprecated
23
+ 'networkChanged'
21
24
]
22
25
23
26
/* eslint-disable @typescript-eslint/no-explicit-any */
@@ -49,11 +52,8 @@ const provRequest = async (args: RequestArguments) => {
49
52
}
50
53
51
54
const sendRequest = async ( ...args : unknown [ ] ) => {
52
- const result = ( await ipcRenderer . invoke ( 'sendRequest' , args ) ) as object
53
- if ( Object . hasOwn ( result , 'error' ) ) {
54
- throw result [ 0 ] . error . message
55
- }
56
- return result [ 0 ] . result
55
+ // send method return is unknown https://eips.ethereum.org/EIPS/eip-1193#send-deprecated
56
+ return ipcRenderer . invoke ( 'sendRequest' , args ) as unknown
57
57
}
58
58
59
59
const sendAsyncRequest = async ( payload : any , callback : JsonRpcCallback ) => {
You can’t perform that action at this time.
0 commit comments