XRPL-Labs / XRPL-HookScript-Ideas

PR HookScript ideas.
3 stars 0 forks source link

Make it easier to use account #8

Open tequdev opened 1 year ago

tequdev commented 1 year ago

It would be nice to be able to use the account more easily.

from

const acc_byte = util_accid('rDADDYfnLvVY9FBnS8zFXhwYFHPuU5q2Sk')
const destination = new Account(acc_byte)

to

const destination = new Account('rDADDYfnLvVY9FBnS8zFXhwYFHPuU5q2Sk')
WietseWind commented 1 year ago

That's exactly what this should become indeed :)

This, and lots of this, so working with HookScript is as easy as using JS/TS.

tequdev commented 1 year ago

I'm commenting here because it's not enough to raise it in an Issue,

I think the developer experience would be greatly improved if we no longer have to be aware of ByteArray and ByteView.

WietseWind commented 1 year ago

I think it would make perfect sense to create a separate issue for that :)