Skip to content

Commit

Permalink
Remove private key in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Feb 6, 2025
1 parent 988b785 commit 53fb98b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions web/packages/operations/src/transfer_to_ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ const transfer = async () => {
const polkadot_keyring = new Keyring({ type: "sr25519" })

const ETHEREUM_ACCOUNT = new Wallet(
process.env["ETHEREUM_KEY"] ||
"0x5e002a1af63fd31f1c25258f3082dc889762664cb8f218d86da85dff8b07b342",
process.env["ETHEREUM_KEY"] || "your_key_here",
context.ethereum()
)
const ETHEREUM_ACCOUNT_PUBLIC = await ETHEREUM_ACCOUNT.getAddress()
Expand Down
3 changes: 1 addition & 2 deletions web/packages/operations/src/transfer_to_polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const transfer = async () => {
const polkadot_keyring = new Keyring({ type: "sr25519" })

const ETHEREUM_ACCOUNT = new Wallet(
process.env["ETHEREUM_KEY"] ||
"0x5e002a1af63fd31f1c25258f3082dc889762664cb8f218d86da85dff8b07b342",
process.env["ETHEREUM_KEY"] || "your_key_here",
context.ethereum()
)
const POLKADOT_ACCOUNT = process.env["SUBSTRATE_KEY"]
Expand Down

0 comments on commit 53fb98b

Please sign in to comment.