Skip to content

Commit

Permalink
fix: bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
web3max committed Apr 17, 2024
1 parent 91edc6d commit 854cc7a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wallet-bridge",
"private": false,
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"main": "./dist/wallet-bridge.umd.js",
"module": "./dist/wallet-bridge.es.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ export async function getDotbitAlias() {
)

if (aliasInfo.data?.err_no === errno.success) {
if (aliasInfo.data?.data?.account_alias) {
if (aliasInfo.data?.data?.account) {
setWalletState({
alias: aliasInfo.data.data.account_alias,
alias: aliasInfo.data.data.account,
})
} else {
setWalletState({
Expand Down
26 changes: 13 additions & 13 deletions src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ msgstr "Incorrect data"
msgid "Info"
msgstr "Info"

#: src/lib/utils/handleError.ts:83
#: src/lib/utils/handleError.ts:84
msgid "Insufficient balance"
msgstr "Insufficient balance"

Expand Down Expand Up @@ -176,7 +176,7 @@ msgstr "Open Torus"
msgid "or Continue with"
msgstr "or Continue with"

#: src/lib/utils/handleError.ts:67
#: src/lib/utils/handleError.ts:68
msgid "Other requests for the wallet are not processed, please try again after processing"
msgstr "Other requests for the wallet are not processed, please try again after processing"

Expand All @@ -192,7 +192,7 @@ msgstr "Passkey"
msgid "Paste data or scan QR code"
msgstr "Paste data or scan QR code"

#: src/lib/utils/handleError.ts:73
#: src/lib/utils/handleError.ts:74
msgid "Please check if you are using multiple wallet plugins. Please disable multiple wallet plugins, keep only one wallet plugin and try again."
msgstr "Please check if you are using multiple wallet plugins. Please disable multiple wallet plugins, keep only one wallet plugin and try again."

Expand Down Expand Up @@ -278,7 +278,7 @@ msgstr "Please try again."
msgid "QR Code"
msgstr "QR Code"

#: src/lib/utils/handleError.ts:49
#: src/lib/utils/handleError.ts:50
msgid "Replacement transaction underpriced"
msgstr "Replacement transaction underpriced"

Expand Down Expand Up @@ -338,15 +338,15 @@ msgstr "Switch Address"
msgid "The contract verification failed."
msgstr "The contract verification failed."

#: src/lib/utils/handleError.ts:89
#: src/lib/utils/handleError.ts:90
msgid "The current wallet environment does not support payments using TRX, please upgrade your wallet version or register with another wallet."
msgstr "The current wallet environment does not support payments using TRX, please upgrade your wallet version or register with another wallet."

#: src/lib/ui/TransactionSucceeded/index.tsx:22
msgid "The new trusted device has full control over this address."
msgstr "The new trusted device has full control over this address."

#: src/lib/utils/handleError.ts:58
#: src/lib/utils/handleError.ts:59
msgid "The transaction has been aborted."
msgstr "The transaction has been aborted."

Expand All @@ -359,13 +359,13 @@ msgstr "This device or browser unsupported. Try connect by social or wallet."
#: src/lib/ui/Login/ChainList.tsx:149
#: src/lib/ui/Login/Connect.tsx:129
#: src/lib/ui/Login/WalletList.tsx:143
#: src/lib/utils/handleError.ts:48
#: src/lib/utils/handleError.ts:57
#: src/lib/utils/handleError.ts:66
#: src/lib/utils/handleError.ts:72
#: src/lib/utils/handleError.ts:82
#: src/lib/utils/handleError.ts:88
#: src/lib/utils/handleError.ts:94
#: src/lib/utils/handleError.ts:49
#: src/lib/utils/handleError.ts:58
#: src/lib/utils/handleError.ts:67
#: src/lib/utils/handleError.ts:73
#: src/lib/utils/handleError.ts:83
#: src/lib/utils/handleError.ts:89
#: src/lib/utils/handleError.ts:95
#: src/lib/wallets/WalletEventListenerHandler/TorusEventListener.ts:68
#: src/lib/wallets/WalletEventListenerHandler/TronLinkEventListener.ts:73
#: src/lib/wallets/WalletEventListenerHandler/TronLinkEventListener.ts:126
Expand Down
26 changes: 13 additions & 13 deletions src/locales/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ msgstr "数据错误"
msgid "Info"
msgstr "提示"

#: src/lib/utils/handleError.ts:83
#: src/lib/utils/handleError.ts:84
msgid "Insufficient balance"
msgstr "余额不足"

Expand Down Expand Up @@ -176,7 +176,7 @@ msgstr "打开 Torus"
msgid "or Continue with"
msgstr "或使用"

#: src/lib/utils/handleError.ts:67
#: src/lib/utils/handleError.ts:68
msgid "Other requests for the wallet are not processed, please try again after processing"
msgstr "钱包的其他请求未处理,请处理后再试"

Expand All @@ -192,7 +192,7 @@ msgstr "Passkey"
msgid "Paste data or scan QR code"
msgstr "粘贴数据或者扫描二维码"

#: src/lib/utils/handleError.ts:73
#: src/lib/utils/handleError.ts:74
msgid "Please check if you are using multiple wallet plugins. Please disable multiple wallet plugins, keep only one wallet plugin and try again."
msgstr "请检查是否使用多个钱包插件。请禁用多个钱包插件,仅保留一个钱包插件后重试。"

Expand Down Expand Up @@ -278,7 +278,7 @@ msgstr "请再次尝试。"
msgid "QR Code"
msgstr "二维码"

#: src/lib/utils/handleError.ts:49
#: src/lib/utils/handleError.ts:50
msgid "Replacement transaction underpriced"
msgstr ""

Expand Down Expand Up @@ -338,15 +338,15 @@ msgstr "切换地址"
msgid "The contract verification failed."
msgstr "合约验证失败。"

#: src/lib/utils/handleError.ts:89
#: src/lib/utils/handleError.ts:90
msgid "The current wallet environment does not support payments using TRX, please upgrade your wallet version or register with another wallet."
msgstr "当前钱包环境不支持使用 TRX 付款,请更新钱包版本或者使用其他钱包。"

#: src/lib/ui/TransactionSucceeded/index.tsx:22
msgid "The new trusted device has full control over this address."
msgstr "新的授信设备有此地址的完全控制权。"

#: src/lib/utils/handleError.ts:58
#: src/lib/utils/handleError.ts:59
msgid "The transaction has been aborted."
msgstr "交易被取消。"

Expand All @@ -359,13 +359,13 @@ msgstr "此设备或浏览器不支持 Passkey,请使用其他方式连接。"
#: src/lib/ui/Login/ChainList.tsx:149
#: src/lib/ui/Login/Connect.tsx:129
#: src/lib/ui/Login/WalletList.tsx:143
#: src/lib/utils/handleError.ts:48
#: src/lib/utils/handleError.ts:57
#: src/lib/utils/handleError.ts:66
#: src/lib/utils/handleError.ts:72
#: src/lib/utils/handleError.ts:82
#: src/lib/utils/handleError.ts:88
#: src/lib/utils/handleError.ts:94
#: src/lib/utils/handleError.ts:49
#: src/lib/utils/handleError.ts:58
#: src/lib/utils/handleError.ts:67
#: src/lib/utils/handleError.ts:73
#: src/lib/utils/handleError.ts:83
#: src/lib/utils/handleError.ts:89
#: src/lib/utils/handleError.ts:95
#: src/lib/wallets/WalletEventListenerHandler/TorusEventListener.ts:68
#: src/lib/wallets/WalletEventListenerHandler/TronLinkEventListener.ts:73
#: src/lib/wallets/WalletEventListenerHandler/TronLinkEventListener.ts:126
Expand Down
26 changes: 13 additions & 13 deletions src/locales/zh-HK.po
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ msgstr "數據錯誤"
msgid "Info"
msgstr "提示"

#: src/lib/utils/handleError.ts:83
#: src/lib/utils/handleError.ts:84
msgid "Insufficient balance"
msgstr "余額不足"

Expand Down Expand Up @@ -176,7 +176,7 @@ msgstr "打開 Torus"
msgid "or Continue with"
msgstr "或使用"

#: src/lib/utils/handleError.ts:67
#: src/lib/utils/handleError.ts:68
msgid "Other requests for the wallet are not processed, please try again after processing"
msgstr "錢包的其他請求未被處理,請處理後再試"

Expand All @@ -192,7 +192,7 @@ msgstr "Passkey"
msgid "Paste data or scan QR code"
msgstr "黏貼數據或者掃描二維碼"

#: src/lib/utils/handleError.ts:73
#: src/lib/utils/handleError.ts:74
msgid "Please check if you are using multiple wallet plugins. Please disable multiple wallet plugins, keep only one wallet plugin and try again."
msgstr "請檢查您是否使用了多個錢包插件。請禁用多個錢包插件,只保留一個錢包插件後再試。"

Expand Down Expand Up @@ -278,7 +278,7 @@ msgstr "請再次嘗試。"
msgid "QR Code"
msgstr "二維碼"

#: src/lib/utils/handleError.ts:49
#: src/lib/utils/handleError.ts:50
msgid "Replacement transaction underpriced"
msgstr ""

Expand Down Expand Up @@ -338,15 +338,15 @@ msgstr "切換地址"
msgid "The contract verification failed."
msgstr "合約驗證失敗。"

#: src/lib/utils/handleError.ts:89
#: src/lib/utils/handleError.ts:90
msgid "The current wallet environment does not support payments using TRX, please upgrade your wallet version or register with another wallet."
msgstr "當前錢包環境不支持使用 TRX 付款,請更新錢包版本或者使用其他錢包。"

#: src/lib/ui/TransactionSucceeded/index.tsx:22
msgid "The new trusted device has full control over this address."
msgstr "新的授信設備有此地址的完全控制權。"

#: src/lib/utils/handleError.ts:58
#: src/lib/utils/handleError.ts:59
msgid "The transaction has been aborted."
msgstr "交易被取消。"

Expand All @@ -359,13 +359,13 @@ msgstr "此設備或瀏覽器不支持 Passkey,請使用其他方式連接。"
#: src/lib/ui/Login/ChainList.tsx:149
#: src/lib/ui/Login/Connect.tsx:129
#: src/lib/ui/Login/WalletList.tsx:143
#: src/lib/utils/handleError.ts:48
#: src/lib/utils/handleError.ts:57
#: src/lib/utils/handleError.ts:66
#: src/lib/utils/handleError.ts:72
#: src/lib/utils/handleError.ts:82
#: src/lib/utils/handleError.ts:88
#: src/lib/utils/handleError.ts:94
#: src/lib/utils/handleError.ts:49
#: src/lib/utils/handleError.ts:58
#: src/lib/utils/handleError.ts:67
#: src/lib/utils/handleError.ts:73
#: src/lib/utils/handleError.ts:83
#: src/lib/utils/handleError.ts:89
#: src/lib/utils/handleError.ts:95
#: src/lib/wallets/WalletEventListenerHandler/TorusEventListener.ts:68
#: src/lib/wallets/WalletEventListenerHandler/TronLinkEventListener.ts:73
#: src/lib/wallets/WalletEventListenerHandler/TronLinkEventListener.ts:126
Expand Down

0 comments on commit 854cc7a

Please sign in to comment.