helium-js
helium-js copied to clipboard
latest package - ADDRESS () fromB58 is not exposed object
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.
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')