Skip to content

Implements GetWalletAccount operation bypassing fistful service #39

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nanodirijabl
Copy link
Contributor

No description provided.

@nanodirijabl nanodirijabl requested a review from WWWcool July 16, 2025 12:43
Comment on lines 26 to 27
_Party = unwrap(object({party_config, #domain_PartyConfigRef{id = PartyID}})),
{#{<<"id">> => PartyID}, PartyID}
Copy link
Collaborator

Choose a reason for hiding this comment

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

а почему решил поправить?

Copy link
Contributor Author

@nanodirijabl nanodirijabl Jul 17, 2025

Choose a reason for hiding this comment

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

Так там ид нету внутри, а раньше был. Так фактически проверяется что пати существует а возвращается кортеж который дальше используется, например, для формирования контекста для запроса в Баунсер.

case wapi_wallet_backend:get_account(WalletID, Context) of
{ok, WalletAccount} -> wapi_handler_utils:reply_ok(200, WalletAccount);
{error, {wallet, notfound}} -> wapi_handler_utils:reply_ok(404)
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

надо бы еще глянуть что контекст для кошелька норм собирается - там же почти тоже самое - нужно вычитать кошелек и ео отмаршалить в баунсер контекст - не помню как я это сделал и делал ли

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