Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add trc20 support #118

Merged
merged 7 commits into from
Jan 26, 2025
Merged

Feat/add trc20 support #118

merged 7 commits into from
Jan 26, 2025

Conversation

TomerHFB
Copy link
Collaborator

No description provided.

@TomerHFB TomerHFB requested a review from a0ngo January 13, 2025 12:27
Comment on lines +182 to +185
if (asset.address && asset.protocol === 'TRX') {
(derivation as TRC20).setTokenAddress(asset.address);
(derivation as TRC20).setDecimals(asset.decimals);
(derivation as ERC20).setToAddress(toAddress);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can optimize these multiple ifs, but it's ok for now

apps/recovery-utility/renderer/lib/wallets/TRC20/index.ts Outdated Show resolved Hide resolved
@a0ngo
Copy link
Collaborator

a0ngo commented Jan 15, 2025 via email

@a0ngo a0ngo merged commit c13ffaf into main Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants