project_web3.0 icon indicating copy to clipboard operation
project_web3.0 copied to clipboard

TransactionContext.jsx problem [2:57:00]

Open gunnvong opened this issue 3 years ago • 7 comments

TypeError: transactionContract.getAllTransactions is not a function at getAllTransactions (TransactionContext.jsx:35:69) at checkIfWalletIsConnected (TransactionContext.jsx:52:17)

the error shows this but I tried checking with the master's code and copying all the codes in the file, yet, the problem still persist.

thank you in advance.

gunnvong avatar May 30 '22 19:05 gunnvong

hye i have the same problem

syahoho avatar Jun 13 '22 21:06 syahoho

I have the same problem but it's with addToBlockchain() method

TypeError: transactionsContract.addToBlockchain is not a function
    at sendTransaction (TransactionContext.jsx:79:1)

hareesh-r avatar Jul 06 '22 16:07 hareesh-r

@hareesh-r hey did you get the answer for your problem actually i'm also facing the same issue

sahilbansal123-lang avatar Jul 22 '22 06:07 sahilbansal123-lang

@hareesh-r hey did you get the answer for your problem actually i'm also facing the same issue

I had the same issue. I found out that I spelled it as addToBlockChain rather that addToBlockchain. Make sure the spelling matches your Transactions.json

Haris320 avatar Jul 28 '22 16:07 Haris320

I fixed it by redo the project all over again. However, not sure what I did wrong in my first try, but, I do believe that the functions and classes in the “transactioncontext.jsx” in the first try must be in the wrong order or placed in the wrong place, thus, the function wasn’t working. Hope it helps.

gunnvong avatar Jul 28 '22 16:07 gunnvong

having the same problem. if anyone got the solution please share.

Raunak34 avatar Sep 07 '22 14:09 Raunak34

TypeError: transactionContract.getAllTransactions is not a function at getAllTransactions (TransactionContext.jsx:35:69) at checkIfWalletIsConnected (TransactionContext.jsx:52:17)

the error shows this but I tried checking with the master's code and copying all the codes in the file, yet, the problem still persist.

thank you in advance.

did you get the solution?

Raunak34 avatar Sep 08 '22 10:09 Raunak34