Skip to content

Commit

Permalink
Merge pull request #1368 from Tonomy-Foundation/bug/1341-permission-q…
Browse files Browse the repository at this point in the history
…uery-exception

feat: ⚡ remove unneeded debugs
  • Loading branch information
sadiabbasi authored Jan 16, 2025
2 parents 89437ae + de9d218 commit 337ad22
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@react-navigation/native-stack": "^6.11.0",
"@sentry/react-native": "~5.24.3",
"@sinonjs/text-encoding": "^0.7.3",
"@tonomy/tonomy-id-sdk": "0.26.0-development.3",
"@tonomy/tonomy-id-sdk": "0.27.0-development.1",
"@veramo/core": "^6.0.0",
"@walletconnect/core": "^2.17.2",
"@walletconnect/react-native-compat": "^2.17.2",
Expand Down
3 changes: 0 additions & 3 deletions src/containers/AssetsContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ export default function AssetsContainer({ navigation }: { navigation: AssetsScre
try {
const asset = await assetStorage.findAssetByName(token);

debug(
`fetchCryptoAssets() fetching asset ${chain.getName()}: ${asset?.accountName}-${asset?.balance}`
);
let account;

if (asset) {
Expand Down
2 changes: 0 additions & 2 deletions src/containers/SSOLoginContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ export default function SSOLoginContainer({ payload, platform }: { payload: stri
navigation.navigate('Assets');
}
} catch (e) {
debug('onLogin() error', e);

if (
e instanceof CommunicationError &&
e.exception.status === 400 &&
Expand Down
2 changes: 0 additions & 2 deletions src/utils/chain/etherum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,8 @@ export class EthereumToken extends AbstractToken {
throw new Error('Account not found');
})();

debug('getBalance() lookupAccount', lookupAccount.getName());
const balanceWei = await (this.chain as EthereumChain).getProvider().getBalance(lookupAccount.getName() || '');

debug('getBalance() balanceWei', balanceWei);
const precisionMultiplier = new Decimal(10).pow(this.getPrecision());

return new Asset(this, new Decimal(balanceWei.toString()).div(precisionMultiplier));
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4684,9 +4684,9 @@ __metadata:
languageName: node
linkType: hard

"@tonomy/tonomy-id-sdk@npm:0.26.0-development.3":
version: 0.26.0-development.3
resolution: "@tonomy/tonomy-id-sdk@npm:0.26.0-development.3"
"@tonomy/tonomy-id-sdk@npm:0.27.0-development.1":
version: 0.27.0-development.1
resolution: "@tonomy/tonomy-id-sdk@npm:0.27.0-development.1"
dependencies:
"@consento/sync-randombytes": "npm:^1.0.5"
"@tonomy/antelope-did-resolver": "npm:^0.10.0"
Expand All @@ -4713,7 +4713,7 @@ __metadata:
typeorm: "npm:^0.3.20"
universal-base64url: "npm:^1.1.0"
web-did-resolver: "npm:^2.0.27"
checksum: 10c0/d554cabc2defa564faed867d86c309fd76701a4a4418e612a057c5deab185ab6dc59ecc27f42ffc38c810116b7cb812f3a8001950dc9e85e4eed883a2fbec736
checksum: 10c0/6cdb6f74107a6bba7a197449d9b7ee3ac12362ad19175c0747e945be4120330d13644501703b6454c0c143d2c4bc9cd4eb571dc29ab52d6e2e5e938a232605e0
languageName: node
linkType: hard

Expand Down Expand Up @@ -19436,7 +19436,7 @@ __metadata:
"@semantic-release/git": "npm:^10.0.1"
"@sentry/react-native": "npm:~5.24.3"
"@sinonjs/text-encoding": "npm:^0.7.3"
"@tonomy/tonomy-id-sdk": "npm:0.26.0-development.3"
"@tonomy/tonomy-id-sdk": "npm:0.27.0-development.1"
"@types/bluebird": "npm:^3"
"@types/jest": "npm:^29.5.14"
"@types/react": "npm:~18.2.79"
Expand Down

0 comments on commit 337ad22

Please sign in to comment.