All Questions
10 questions with no upvoted or accepted answers
1
vote
0
answers
41
views
Metamask Connect Button Not working when adding "Deposit" function
I'm following a tutorial for a basic app that utilizes Metamask, this is my code in index.js:
import { ethers } from "./ethers-5.6.esm.min.js"
import { abi, contractAddress } from "./...
1
vote
1
answer
166
views
How is the Gas Price field in Metamask populated?
I have an evm compatible blockchain with a price limit set to 10000.
However when I go to submit a transaction to a validator, Metamask populates the gas price at 0:
How can I ensure transactions are ...
1
vote
0
answers
350
views
Contract not returning error to React Interface
I have a contract which I've tested with Mocha and Remix and is working just fine. The problem is when I'm running it with my React Interface. When I call a function in my solidity contract that ...
0
votes
1
answer
22
views
In which language should i write my deployment code Javascript or Solidity
Which language should I learn to write the deployment code for a smart contract: JavaScript or Solidity (using Foundry)? What should I learn according to today's trends?
0
votes
1
answer
78
views
Rejecting the transaction doesn't catch the error in try-catch block
I am working on a Dapp porject ,Where I have to catch the metamask error.
Here is my code:
import React, {
createContext,
useContext,
useEffect,
useRef,
useState,
} from "react";
...
0
votes
0
answers
92
views
Receiving Invalid Address on Web3
I am having issues launching my web3 connected to Solidity (on Remix) and MetaMask. The error that popped out was that I have an invalid address and they were referencing the function called ...
0
votes
1
answer
69
views
ReferenceError: web3 is not defined
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>
<script>
window.onload = function(){
if(typeof web3==&...
0
votes
0
answers
7k
views
MetaMask - Internal JSON-RPC error
i was developing a full stack nft marketplace, where i can mint nfts but when i try to buy it gives me this error :MetaMask - Internal JSON-RPC error
code: 3, message: "execution reverted: Please ...
0
votes
0
answers
25
views
How to update Data on UI
I have a UI thats connected to metamask
The UI updates all the Info now on address change and when metamask is enabled
How can i make my UI update every second? so it always shows accurate stats on ...
0
votes
0
answers
108
views
Not able to call the solidity function through App.js? Anyone know how to call a solidity function?
I'm trying to call a Solidity function from App.js, but I'm unsuccessful even after a number of tries.
Its a very simple function betOnTeam(). Inside this function I just want to check condition and ...