Skip to content

Lesson 10 : TypeError: Cannot read properties of undefined (reading 'length') #5723

Answered by TheDude-dev
TheDude-dev asked this question in Q&A
Discussion options

You must be logged in to vote

@alymurtazamemon I fixed the issue. It was a version conflict in my dependencies. I downgraded everything to Pactrick's versions and also had to downgrade my node.js to v16. Now it's working fine. But when I run the Execute function I'm getting this error here in my hardhat node :

eth_call
Contract call: SimpleStorage#
From: 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266
To: 0x5fbdb2315678afecb367f032d93f642f64180aa3

Error: Transaction reverted: function selector was not recognized and there's no fallback function

I wonder what's the issue here.

index.js :

import styles from "../styles/Home.module.css";
import { useWeb3React } from "@web3-react/core";
import { InjectedConnector } from "@web…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@TheDude-dev
Comment options

@alymurtazamemon
Comment options

@TheDude-dev
Comment options

@TheDude-dev
Comment options

Answer selected by TheDude-dev
@TheDude-dev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants