-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Permissioned domains #3102
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
Permissioned domains #3102
Conversation
@maria-robobug After #3091 is merged, I'll update whatever changes happened there into this PR. I expect only the code to change on the backend, the frontend functionality and tutorial page should stay the same, so those can be safely reviewed. |
docs/tutorials/javascript/decentralized-finance/create-permissioned-domains.md
Outdated
Show resolved
Hide resolved
|
||
// Get credential type - convert string to hex if needed | ||
let credentialType = credentialTypeField.value; | ||
if (!/^[0-9A-F]+$/i.test(credentialType)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use convenience functions from the @xrplf/isomorphic
package to convert string to hex or hex back to string: stringToHex
, hexToString
.
Also mentioned in xrpl.js
reference:
https://js.xrpl.org/functions/convertStringToHex.html
https://js.xrpl.org/functions/convertHexToString.html
docs/tutorials/javascript/decentralized-finance/create-permissioned-domains.md
Outdated
Show resolved
Hide resolved
docs/tutorials/javascript/decentralized-finance/create-permissioned-domains.md
Outdated
Show resolved
Hide resolved
docs/tutorials/javascript/decentralized-finance/create-permissioned-domains.md
Outdated
Show resolved
Hide resolved
b01f4a5
to
d965bff
Compare
d965bff
to
cd53966
Compare
docs/tutorials/javascript/compliance/create-permissioned-domains.md
Outdated
Show resolved
Hide resolved
docs/tutorials/javascript/compliance/create-permissioned-domains.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Maria Shodunke <maria-robobug@users.noreply.github.com>
…ns.md Co-authored-by: Maria Shodunke <maria-robobug@users.noreply.github.com>
…ns.md Co-authored-by: Maria Shodunke <maria-robobug@users.noreply.github.com>
Add modular tutorial for Permissioned Domains. Includes pending refactors from #3091