From 4a754c68340d7036cbdab8faed876c14433614cd Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Sun, 29 Dec 2024 18:24:06 -0500 Subject: [PATCH] remove unneeded imports from conversion script --- examples/eth-addr-format-to-ss58.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/eth-addr-format-to-ss58.js b/examples/eth-addr-format-to-ss58.js index 7d98ed2..58f4bbd 100644 --- a/examples/eth-addr-format-to-ss58.js +++ b/examples/eth-addr-format-to-ss58.js @@ -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"; @@ -17,4 +12,4 @@ async function main() { } main().catch(console.error); -console.warn = () => {}; +console.warn = () => { };