-
Notifications
You must be signed in to change notification settings - Fork 54
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
Remove send_asset
procedure from the basic wallet.
#821
Comments
I'm curious what @Dominik1999 and @igamigo (and anyone else) think about this change. Basically, we'll be changing the basic wallet interface from 2 procedures: |
Other than the performance hit (which should be low/near neglibigle AFAICT) I don't see too much downside to the change. It seems nice to dynamically generate scripts as well. |
I don't see any downside to this approach. The only question is, how many people would send a note without an asset? We don't know that yet, because we don't have many users/builders. So, we should be open to changing that back once we realize that most users send assets via the wallet. In that case, we could have a third function, |
@Dominik1999 In that case
People will be able not only create a note without an asset, but also create a note and add several assets to it. But the same as for "note without assets", I don't know how often this feature will be used, but this is one of the advantages of using |
That totally makes sense. Let's go for those three functions for now: |
I guess we have a few options here: 1. Add new procedures to the existing walletBasically, basic wallet interface would have the following procedures
We already have this. 2. Replace
|
Closed by #829. |
What should be done?
As soon as the #808 pull request will be merged, two new procedures
cteate_note
andmove_asset_into_note
will be available in the basic wallet. Used together they can substitute the existingsend_asset
procedure, so there is a proposal to removesend_asset
from the basic wallet.How should it be done?
send_asset
procedure should be removed from themiden-lib/asm/miden/contracts/wallets/basic.masm
and all its usages should be replaced withcreate_note
andmove_asset_into_note
procedures.When is this task done?
This task will be done when
send_asset
procedure will be entirely taken out of use and will be replaced withcreate_note
+move_asset_into_note
procedures.Additional context
No response
The text was updated successfully, but these errors were encountered: