Skip to content

Commit

Permalink
chore: remove unused messages, bump version (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangNguyen17193 authored Sep 25, 2024
1 parent 38fdc52 commit 3249ce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sky-mavis/tanto-connect",
"version": "0.0.1-alpha.2",
"version": "0.0.1-alpha.3",
"description": "Tanto Connect",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class RoninWalletConnector extends BaseConnector {
return connectResults;
} catch (err) {
if ((err as any as { code: number; message: string })?.code === 4001) {
throw new ConnectorError(ConnectorErrorType.USER_REJECTED_SESSION_REQUEST, err);
throw new ConnectorError(ConnectorErrorType.USER_REJECTED_REQUEST, err);
}
throw new ConnectorError(ConnectorErrorType.CONNECT_FAILED, err);
}
Expand Down
5 changes: 1 addition & 4 deletions packages/connect/src/types/connector-error.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
export enum ConnectorErrorType {
PROVIDER_NOT_FOUND = 'ProviderNotFound',
WALLET_IS_LOCKED = 'WalletIsLocked',
CONNECT_FAILED = 'ConnectFailed',
USER_REJECTED_SESSION_REQUEST = 'UserRejectedSessionRequest',
INVALID_PARAMS = 'InvalidParams',
USER_REJECTED_REQUEST = 'UserRejectedRequest',
NOT_INSTALLED = 'NotInstalled',
UNKNOWN = 'Unknown',
SWITCH_CHAIN_NOT_SUPPORTED = 'SwitchChainNotSupported',
}

Expand Down

0 comments on commit 3249ce0

Please sign in to comment.