Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions examples/eth-addr-format-to-ss58.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
const { ethers } = require('ethers');
const { ApiPromise, WsProvider, Keyring } = require('@polkadot/api');
const { convertH160ToSS58 } = require('./address-mapping.js');

// PROTECT YOUR PRIVATE KEYS WELL, NEVER COMMIT THEM TO GITHUB OR SHARE WITH ANYONE
const { ethPrivateKey, subSeed, rpcUrl, wsUrl } = require('./config.js');

async function main() {
// Paste your Metamask wallet account address (Ethereum H160 address) into recipientEthereumAddress. For example:
// const recipientEthereumAddress = "0x709615c655B24919F48B365D292521EFcC74467B";
Expand All @@ -17,4 +12,4 @@ async function main() {
}

main().catch(console.error);
console.warn = () => {};
console.warn = () => { };