bech32-converting
package.
index.js
in the src
directory where we will write our code.
0x0901aeeD1d5144987DaE3D95AB219ff75e9bA636
that we want to convert to a Cosmos address, and then convert it back to an EVM address.
First, we import the bech32-converting
package and initialize the variable for the chain’s Bech32 prefix.
bech32-converting
package’s toHex
function.
bech32-converting
package’s fromHex
function.