Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unneeded imports from conversion script #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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 = () => { };