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

not able to pass option into an entry fun #5

Open
0xbe1 opened this issue Dec 16, 2022 · 0 comments
Open

not able to pass option into an entry fun #5

0xbe1 opened this issue Dec 16, 2022 · 0 comments

Comments

@0xbe1
Copy link

0xbe1 commented Dec 16, 2022

Currently, there is no way to pass an Option into an entry function in TS (see this SO thread). However, this force_clear_registration method expects an Option.

public entry fun force_clear_registration(sign: &signer, subdomain_name: Option<String>, domain_name: String) acquires NameRegistryV1 {

A workaround would be turning the Option into a vector instead.

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

No branches or pull requests

1 participant