Closed oktapodia closed 5 years ago
Actually, I found that it has been fixed by https://github.com/ripple/ripple-lib/pull/968, do you have an ETA for the new version?
@oktapodia Good catch. Here's a temporary workaround:
const address = api.generateAddress() as {address: string, secret: string}
const keypair = api.deriveKeypair(address.secret)
The new version will be released within a day or so.
Hello,
I have a little typing error when trying to use the method
generateAddress
fromRippleAPI
in typescript.The auto-generated typing file in
ripple-lib/dist/npm/offline/generate-address.d.ts
contains:declare function generateAddressAPI(options?: Object): Object;
And it should contains the following typing: https://github.com/ripple/ripple-lib/blob/develop/src/offline/generate-address.ts#L5
Then when i'm trying to get the
address
orsecret
from this response, I'm getting these errors:Do you know how to make it compliant?
Regards