File tree 5 files changed +9
-3
lines changed
5 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 4
4
/lib /
5
5
/docs /tmp.md
6
6
/.idea
7
+ /.vscode
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @idealight-labs/anyweb-js-sdk" ,
3
3
"description" : " AnyWeb JavaScript Software Development Kit" ,
4
- "version" : " 1.2.1 " ,
4
+ "version" : " 1.2.2 " ,
5
5
"license" : " LGPL-3.0" ,
6
6
7
7
"repository" : {
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export interface IIframeData {
91
91
type : 'event' | 'callback' | 'router' | 'default'
92
92
data : unknown
93
93
success ?: boolean
94
+ message ?: string
94
95
}
95
96
96
97
export interface IIframeEventData {
Original file line number Diff line number Diff line change @@ -277,10 +277,11 @@ export class Provider implements IProvider {
277
277
} ,
278
278
this
279
279
)
280
- } catch ( e ) {
280
+ } catch ( e : any ) {
281
281
throw new ProviderRpcError (
282
282
ProviderErrorCode . SendTransactionError ,
283
- 'Error to sendTransaction: ' + e
283
+ 'Error to sendTransaction: ' + e . message ,
284
+ e . data
284
285
)
285
286
}
286
287
case 'anyweb_importAccount' :
@@ -315,6 +316,8 @@ export class Provider implements IProvider {
315
316
this
316
317
)
317
318
case 'exit_accounts' :
319
+ return this . rawRequest ( 'anyweb_revoke' , params )
320
+ case 'anyweb_revoke' :
318
321
return await callIframe (
319
322
'pages/dapp/auth' ,
320
323
{
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export enum AddressType {
11
11
/**
12
12
* Get the type of an address.
13
13
* @param address
14
+ * @param logger
14
15
*/
15
16
export const getAddressType = (
16
17
address : string ,
You can’t perform that action at this time.
0 commit comments