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: claim gift #31

Merged
merged 2 commits into from
Dec 28, 2023
Merged

Feat: claim gift #31

merged 2 commits into from
Dec 28, 2023

Conversation

sokolova-an
Copy link
Contributor

No description provided.

@sokolova-an sokolova-an requested a review from ERussel December 28, 2023 15:33
const chain = await getAssetBySymbol(symbol);
const address = encodeAddress(publicKey, chain.chain.addressPrefix);

claimGift(seed, address, chain.chain.chainId, submitExtrinsic)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's don't forget to add validation that address associated with seed contain tokens

@ERussel ERussel merged commit 9097e38 into main Dec 28, 2023
@ERussel ERussel deleted the feat/claim-gift branch December 28, 2023 15:51
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