Questions tagged [dapp-debugging]
The dapp-debugging tag has no usage guidance.
32
questions
0
votes
1
answer
19
views
How to use vscode debugger for web3 development?
For Web3 development, it's necessary to have wallet extensions like MetaMask to test the DApps with it. How can I say vscode debugger to use my browsers user with its all extensions and don't use it ...
1
vote
2
answers
107
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 ...
0
votes
0
answers
14
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 ...
0
votes
0
answers
26
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 ...
1
vote
0
answers
39
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 ...
1
vote
0
answers
24
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 ...
0
votes
0
answers
55
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 ...
1
vote
2
answers
55
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;
...
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 ...
0
votes
1
answer
31
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?
0
votes
1
answer
930
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 ...
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....
5
votes
1
answer
729
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 ...
0
votes
1
answer
78
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 ...
1
vote
1
answer
427
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....
11
votes
5
answers
18k
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 ...
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 ...
1
vote
0
answers
687
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 ...
0
votes
1
answer
346
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 ...
8
votes
0
answers
408
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 ...
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 ...
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 ...
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 ...
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/...
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 ...
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 ...
1
vote
0
answers
834
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 ...
0
votes
1
answer
224
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 ...
1
vote
1
answer
253
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 ...
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?
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?
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?