Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
Javascript look up for etherum wallet

Hi I have a javascript map

  const map = new Map();

  map.set("0x3D22D6A57722A566e1AD087d95daD35595818c7f" , true);

and ethereum account wallet from web3 after connect to metamask event. I want to look up the account in the map to allow certain logic

if (map.get(blockchain.account)) {
  //some ops
}

However, whitelistMap.get(blockchain.account) always returns undefined. I have tried blockchain.account.toString() String(blockchain.account) but none of them work.

Any idea? Thanks

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You are likely mixing up Ethereum checksummed addresses and lowercased addresses.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!