Questions tagged [dapp-debugging]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
23 votes
1 answer
5k views

What is truffle?

What is the truffle framework? Who can use it, who should use it? And what are the benefits?
q9f's user avatar
  • 32.9k
19 votes
2 answers
2k views

What is embark?

What is the embark framework? Who can use it, who should use it? And what are the benefits?
q9f's user avatar
  • 32.9k
11 votes
5 answers
17k views

Error: Transaction reverted: function call to a non-contract account

I've been trying to debug this for the past 2 days, it has driven me insane. I'm getting this error when testing my contract: Error: Transaction reverted: function call to a non-contract account. It's ...
Colin Steidtmann's user avatar
11 votes
2 answers
3k views

Debugging JS unit tests with truffle framework in VS code

Is there a way to debug JS unit tests for smart contracts? I use VS Code for development, and when I try to run a Mocha debugger it complains that artifacts is not defined. I briefly looked at truffle ...
Andrey's user avatar
  • 1,147
10 votes
1 answer
9k views

Truffle Dapp only works when I first use `truffle migrate --reset`

When I first load my Dapp with testrpc the functionality doesn't work until I use the command truffle migrate --reset Any ideas why?
ethereal's user avatar
  • 1,805
8 votes
0 answers
384 views

Remix debugger ignores breakpoint

Description of issue I'm trying to debug a simple contract using remix on chrome v. 65 on Ubuntu. I must be doing something wrong, because I have the following issue: When I place a breakpoint in ...
Ytsen de Boer's user avatar
5 votes
1 answer
657 views

Is there a way to abort or cancel web3 requests? (not transactions)

I am using myContract.getPastEvents (https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html#getpastevents) and I need to be able to cancel this request if a user switches their account or ...
keithfrazier98's user avatar
1 vote
3 answers
2k views

Incorrect Uniswap Liquidity Calculations. What could be wrong?

Looking though a uniswap address: https://info.uniswap.org/account/0xd62317c76E626D53C900088Fb07539b829B564B2 This address shows that it added $30k+ worth of liquidity, and none of it is removed. Why ...
Patoshi パトシ's user avatar
1 vote
3 answers
1k views

Cors Error with Infura?

anyone else who tries to read smart contract data through Infura and process it on front-end but gets 'CORS' error? My DAPP works fine in Google Chrome and has no issue in fetching the smart contract ...
Iulian's user avatar
  • 640
1 vote
1 answer
2k views

How to use custom ERC20 Tokens for payments [closed]

I am currently implementing a private Ethereum Blockchain. I have also created a custom ERC20 Token smart contract. I want to know how to use this custom token instead of ether for another smart ...
Imran Makhdoom's user avatar
1 vote
2 answers
45 views

Metamask tries to connect when it shouldn't

Brief explanation: I tried to embed some interactivity to a website using plain js/html. I deploy a smart contract using hardhat-deploy plug-in (my contract gets deployed when i spin up the hardhat ...
andr0-0's user avatar
  • 47
1 vote
1 answer
422 views

0x exchange v3 debugging (execution reverted, more details inside)

I am trying to swap the erc721 token for erc20 using the 0x protocol which I deployed on the testnet. Using the following script to perform the swap: /** * Local, Data & Env imports * Exchange....
hack3r-0m's user avatar
  • 1,919
1 vote
1 answer
250 views

Question regarding Testrpc evm_increaseTime and oraclise

After creating my contract at t1, which is supposed to be called back from oraclise using Ethereum-bridge at t2. I did a time jump to t2 on testrpc using evm_increaseTime and evm_mine. Yet the ...
badr's user avatar
  • 11
1 vote
0 answers
28 views

How to inspect MetaMask

I was wondering how can I listen to the requests & data that are being sent between the MetaMask extension & DApp, My purpose is to inspect how is MetaMask reacting to DApp requests so that I ...
Reza Aslejeddian's user avatar
1 vote
0 answers
14 views

truffle migration error

this is the truffle-config.js file: const path = require("path"); module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> // to customize your Truffle ...
ps0's user avatar
  • 11
1 vote
2 answers
41 views

Unable to call a function from my smart contract in react

So I have checked and the smart contract is working perfectly in hardhat but when I am call it in react I am facing problem // SPDX-License-Identifier: MIT pragma solidity >=0.5.0 <0.9.0; ...
DEEPTA SURYA Kolay's user avatar
1 vote
0 answers
23 views

Chrome refuses to open and claims my dapp website is malicious

I just deployed a simple dapp on which users can connect their wallet and deploy their own ERC20 token. However, when I click the link of my website, Chrome doesn't open it and I get a red page ...
Matthias S's user avatar
1 vote
0 answers
666 views

Sending transaction via nodejs backend , trying to send ether from one address to another

I am trying to send ether from one account to another I am using the modules web3, express and ethereumjs-tx. And also Infura rinkey as my provider. I am having problems that if the value is too high ...
alex schobel's user avatar
1 vote
0 answers
38 views

Error: VM Exception when inserting into ordered statistics tree

I am trying to use an ordered statistics tree library in solidity based on this implementation https://github.com/drcode/ethereum-order-statistic-tree with some minor modifications to make it into a ...
John May's user avatar
1 vote
0 answers
1k views

Debug with geth

I'm trying to debug a failed ether transaction and to understand what went wrong. The transaction is this one: https://etherscan.io/tx/...
MichaelRazum's user avatar
1 vote
0 answers
73 views

Does Mist Wallet support transfer of Ether through a Smart Contract?

I have implemented a private ethereal blockchain. I have also deployed a simple trading smart contract. It runs fine once deployed through MIST wallet. The problem is that it does not subtract ether ...
Imran Makhdoom's user avatar
1 vote
0 answers
833 views

How to fix 'Waiting for roots to load...' in react-devtools for a dApp?

I am building a Parity UI dApp from the Skeleton dApp at https://github.com/paritytech/skeleton and I want to debug it with Facebook's react-devtools Since Parity renders the dApp in an iframe, I ...
dcorking's user avatar
  • 145
0 votes
1 answer
344 views

Ethereum Smart contract calling a function in another smart contract that has a address payable return value give error

I am new to solidity. Anyway, I have written the following smart contract: pragma solidity >=0.4.22 <0.7.0; contract SP { address BlockAddress; bytes32 _Mhash; function ...
Deepal's user avatar
  • 66
0 votes
1 answer
222 views

Payable function 'charges' sender twice value sent in tx after invoking library function

Facing a nasty bug and could really use a pair of fresh eyes. I have a payable function that is somehow taking twice the value sent to it by the sender, from the sender. Specifically, it appears to ...
Max's user avatar
  • 636
0 votes
1 answer
30 views

Remix does not show openzeppelin counter variable in Debugger

My local x variable is appearing in the debugger, why is the game_id variable not showing up?
Danny B's user avatar
  • 323
0 votes
1 answer
1k views

Not able to read a state variable Array in my smart contract using hardhat & ethers

I am trying to get the output array 'stakings' from the TokenFarm.sol file, using the following way const tx = await tokenFarm .connect(address1) .stakeTokens({ value: ethers.utils....
Gourav Kumar's user avatar
0 votes
0 answers
10 views

browser debug tools

I found it really painful to debug data flow between dapp and rpcnode im talking to. I have to search over network tab in chrome dev tools, manually decode data (when know abi ... ). When it comes to ...
chilly_maximus's user avatar
0 votes
0 answers
15 views

Why registerAllowedOrderSigner function doesnt work

i created a limit order. Then what I wanted is to give access to another address who can sign the order on behalf of me. I called the registerAllowedOrderSigner method from the proxy contract and ...
sayantan mondal's user avatar
0 votes
0 answers
47 views

Smart contrat working in remix ide but actions not working with web3.js html interface, only displays work and i can't figure out where and why it is

first of all thank you for your time reading this. I'm trying to learn and play with solidity on polygon mumbai blockchain. I worked with internet forums, videos and chatgpt4. Here is some details ...
Jawhar Aredsgfs's user avatar
0 votes
1 answer
877 views

ProviderError: Error: Transaction reverted: function call to a non-contract account at httpProvider.request

I've been trying to debug this for about 8 hours now and have made no progress at all. I am new to programming and attempting to design a very basic DAO. Each time I attempt to deploy my contracts ...
Beau Chaseling's user avatar
0 votes
1 answer
76 views

I cannot divide these two values together in solidity

function calculate( uint index )public view returns(uint, uint, bool){ uint avh1; uint avh2; uint avh3; uint avl1; uint avl2; uint avl3; uint allowbuy; uint ...
khunachik's user avatar