helium-js icon indicating copy to clipboard operation
helium-js copied to clipboard

latest package - ADDRESS () fromB58 is not exposed object

Open jasonmacaus opened this issue 2 years ago • 1 comments

Starting from 4.0.0 it seems the ADDRESS object is not available in the below stage.

const { Keypair, Address } = require('@helium/crypto');

It can be required directly when @helium/address is installed, but the object behaves differently to the object in 3.x (which the readme seems to be still using) and crucially fromB58 function is not accessible.

Can you please let us know the workaround or new process for accessing the fromB58 function that the ADDRESS object is used for.

jasonmacaus avatar Nov 21 '22 05:11 jasonmacaus

Can you share a example of how you are using the Address?

I am using it like this and it works for me

import Address from '@helium/address'; Address.fromB58('wallet address')

andreiguzga avatar Nov 21 '22 08:11 andreiguzga