Saturday, June 6, 2026
No Result
View All Result
Crypeto News
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos
CRYPTO MARKETCAP
Crypeto News
No Result
View All Result

How do I access a solidity mapping of address => struct using ethers.js? : ethereum

by crypetonews
October 30, 2022
in Ethereum
Reading Time: 1 min read
0 0
A A
0
Home Ethereum
Share on FacebookShare on Twitter


On the face of it your solidity looks OK so I would guess that what’s happening is that either there’s something wrong with the function you’re using to call it or the data you expect to be there isn’t there because some previous step doesn’t work, or you’re passing the key in wrongly. We can’t tell because you didn’t post that function to stackexchange and we don’t know how you set the data up.

If you’re going to use the “debug by fiddling around with it” method you might want to try reading the function through a block explorer so that you can make sure the data you expect is there. However this is quite a painful way to develop; I’d suggest you write some unit tests, which will probably help you solve the problem on your own, but if it doesn’t you can point people to the failing test and it’ll be easier for them to tell you why it’s failing.



Source link

Tags: accessAddressethereumethers.jsmappingSoliditystruct
Previous Post

Crypto Startup Domain Money Revises Its Operational System

Next Post

Ethereum Price Bounces Again But Touching These Levels Could Trigger A Sell Off

Related Posts

Protocol Update 002 – Scale Blobs
Ethereum

Protocol Update 002 – Scale Blobs

August 22, 2025
Reddit AMA #77 with $VERB Chairman Manny Stotz — Digital Treasuries, BTC/ETH/TON, and Market Impact
Ethereum

Reddit AMA #77 with $VERB Chairman Manny Stotz — Digital Treasuries, BTC/ETH/TON, and Market Impact

August 20, 2025
Trillion Dollar Security – Phase 2
Ethereum

Trillion Dollar Security – Phase 2

August 20, 2025
Join Us: EF Protocol Reddit AMA – August 29th, 2025
Ethereum

Join Us: EF Protocol Reddit AMA – August 29th, 2025

August 15, 2025
Protocol Update 001 – Scale L1
Ethereum

Protocol Update 001 – Scale L1

August 5, 2025
lean Ethereum | Ethereum Foundation Blog
Ethereum

lean Ethereum | Ethereum Foundation Blog

July 31, 2025
Next Post
Ethereum Price Bounces Again But Touching These Levels Could Trigger A Sell Off

Ethereum Price Bounces Again But Touching These Levels Could Trigger A Sell Off

Crypto Scam Report Shows Web3 Experienced 15 New Fraudulent Smart Contracts

Crypto Scam Report Shows Web3 Experienced 15 New Fraudulent Smart Contracts

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

RECOMMENDED

No Content Available

  • USD
  • EUR
  • GBP
  • AUD
  • JPY
  • bitcoinBitcoin(BTC)
    $60,485.000.27%
  • ethereumEthereum(ETH)
    $1,554.63-1.39%
  • tetherTether(USDT)
    $1.000.03%
  • binancecoinBNB(BNB)
    $573.870.49%
  • usd-coinUSDC(USDC)
    $1.00-0.01%
  • rippleXRP(XRP)
    $1.08-1.78%
  • solanaSolana(SOL)
    $61.64-4.83%
  • tronTRON(TRX)
    $0.3215250.17%
  • Figure HelocFigure Heloc(FIGR_HELOC)
    $1.03-0.27%
  • HyperliquidHyperliquid(HYPE)
    $57.38-0.47%
  • Trending
  • Comments
  • Latest
4 Expert Tips to Turn Blank Pages Into Business Blueprints

4 Expert Tips to Turn Blank Pages Into Business Blueprints

October 21, 2024
What are Meta Transactions? Exploring ERC-2771

What are Meta Transactions? Exploring ERC-2771

October 25, 2023
Top Crypto Portfolio Rebalancing Tools (Automated & Manual)

Top Crypto Portfolio Rebalancing Tools (Automated & Manual)

April 13, 2025
Uniswap v4 Teases Major Updates for 2025

Uniswap v4 Teases Major Updates for 2025

January 2, 2025
What Are Governance Tokens? A Beginner’s Guide to Crypto Voting Power

What Are Governance Tokens? A Beginner’s Guide to Crypto Voting Power

April 28, 2025
A 98% Crash and a Pump & Dump

A 98% Crash and a Pump & Dump

August 8, 2025
AI Expert: Truth Protocols Could Become the SSL of the Information Age

AI Expert: Truth Protocols Could Become the SSL of the Information Age

August 24, 2025
Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means

Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means

August 24, 2025
Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse

Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse

August 24, 2025
Ethereum’s Tech Edge Could Outshine Bitcoin — Here’s How

Ethereum’s Tech Edge Could Outshine Bitcoin — Here’s How

August 23, 2025
IRS Loses Top Crypto Enforcer After Only 90 Days on the Job

IRS Loses Top Crypto Enforcer After Only 90 Days on the Job

August 23, 2025
US Court Grants Stay In Coinbase Biometric Data Lawsuit — Details

US Court Grants Stay In Coinbase Biometric Data Lawsuit — Details

August 23, 2025
Crypeto News

Find the latest Bitcoin, Ethereum, blockchain, crypto, Business, Fintech News, interviews, and price analysis at Crypeto News.

CATEGORIES

  • Altcoin
  • Analysis
  • Bitcoin
  • Blockchain
  • Crypto Exchanges
  • Crypto Updates
  • DeFi
  • Ethereum
  • Metaverse
  • Mining
  • NFT
  • Regulations
  • Scam Alert
  • Uncategorized
  • Videos
  • Web3

LATEST UPDATES

  • AI Expert: Truth Protocols Could Become the SSL of the Information Age
  • Analyst Says Dogecoin Price Is Entering Expansion Phase, Here’s What It Means
  • Robert Kiyosaki Exposes Brutal Truth Behind Sudden Wealth and Collapse
  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us
  • About Us

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

No Result
View All Result
  • Home
  • Bitcoin
  • Crypto Updates
    • General
    • Blockchain
    • Ethereum
    • Altcoin
    • Mining
    • Crypto Exchanges
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Analysis
  • Regulations
  • Scam Alert
  • Videos

Copyright © 2022 Crypeto News.
Crypeto News is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In