-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Programmable Txs without enforcing input usage #8776
Comments
Hey @kchalkias @tnowacki I've tried this feature to send memo in a transaction Current behavior is the string will be parsed as array of decimal I've done some experiments and in order to parse the string as string, we need to use the input inside a movecall like this one Is there any way to do this without using movecall? |
Are you using suivision to build your transactions? If so, it might be an issue on their end? As far as the network is concerned, pure (non-object) arguments get passed in as an array of bytes. Those bytes are then deserialized via BCS to the specified Move value (depending on what command is used). Or they are left alone as bytes if never used. |
Yeah, what I am trying to say is, is there any way to deserialized the input into string without using it into a movecall arguments? |
There is not, but what is your usage for that case? |
Just trying to provide a UI tool to allow user to send transaction with memo, and it will be great if there is a standardized way to do it |
They can just send the bytes for the memo. No issue there. If they want to enforce it to be a utf8 string, they can call |
Useful for registering a memo in the blockchain (retrievable from archival node)
The text was updated successfully, but these errors were encountered: