Skip to content
This repository was archived by the owner on May 21, 2023. It is now read-only.

Comments

Feature/native token#19

Open
kpob wants to merge 10 commits into0.2.0from
feature/native_token
Open

Feature/native token#19
kpob wants to merge 10 commits into0.2.0from
feature/native_token

Conversation

@kpob
Copy link
Contributor

@kpob kpob commented Oct 12, 2022

No description provided.

@kpob kpob marked this pull request as draft October 12, 2022 14:26
@kpob kpob marked this pull request as ready for review October 14, 2022 09:07
@kpob kpob requested a review from zie1ony October 14, 2022 09:07
if let Some(amount) = attached_value {
let cargo_purse = create_purse();
let main_purse = get_main_purse();
let _ = transfer_from_purse_to_purse(main_purse, cargo_purse, amount, None);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let _ = transfer_from_purse_to_purse(main_purse, cargo_purse, amount, None);
transfer_from_purse_to_purse(main_purse, cargo_purse, amount, None).unwrap_or_revert();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants