Skip to main content

All Questions

Tagged with
14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
2 answers
788 views

Testing VrfCoordinatorV2Mock fulfillRandomWords gets stuck

I am testing a smart contract that uses Chainlink's VRF Oracle. Locally, I am using a mock to test with. In the unit test it never executes the fulfillRandomWords function that on my smart contract, ...
Anas Latique's user avatar
3 votes
0 answers
2k views

Why ethers.js sign function not working?

I am using the ethers.js library, and am trying to code a transaction. Here is a snippet where I connect a wallet to a provider, connect to a contract I want to call a function in, and try to call the ...
Louis's user avatar
  • 1,155
2 votes
0 answers
2k views

invalid signer or provider (argument="signerOrProvider") from @web3-react/core

hello everyone I'm able to connect walletConnect with @web3-react/core but I don't know how to get the provider here's my code. import { InjectedConnector } from "@web3-react/injected-connector&...
Nabeel 's user avatar
1 vote
1 answer
97 views

Enumerate non-enumerated NFTs in web3.js

I want to call the ownerOf() function on all of the NFT's in a contract. If the address matches the website user address I want to add the tokenID to an array so I can eventually display all nft's ...
Jordan T's user avatar
1 vote
0 answers
489 views

Ether transaction does not reflect in ganache

Hi am developing a etherium DAPP. In that for every user registration some ether will get transfer from user to contract... Everything work perfect but the transacted ether is not reflecting in ...
Monicka Akilan's user avatar
0 votes
0 answers
23 views

How to connect trust wallet conection modal in mobile ethersjs?

I have an authorization web3 window but its only opens on desktop but not on mobile apps. How can I solve this problem ? export const getSigner = async () => { let provider; if(window....
Victor's user avatar
  • 1
0 votes
0 answers
23 views

setOpenCreatePost Function Not Triggered Despite Click Event Logging "Textarea clicked"

I'm currently facing an issue in my Next.js application where the setOpenCreatePost function does not seem to be triggered when clicking on a . Although the console correctly logs "Textarea ...
Harsha Kumar's user avatar
0 votes
2 answers
38 views

How to Call Solidity Function with Struct Parameter from JavaScript?

I'm trying to execute a Solidity function using JavaScript. The Solidity function accepts a struct as an argument, and I'm not sure how to structure the data in my JavaScript code to make this call ...
adam mr's user avatar
  • 141
0 votes
1 answer
157 views

Reading Ethereum contract event TypeError: Cannot read properties of undefined (reading 'toHexString')

I have the following js script that i want to use to read events from a smart contract below, but when i run the script I get the following error message TypeError: Cannot read properties of undefined ...
Osemu Aimiosior's user avatar
0 votes
1 answer
109 views

ethers sendTransaction times out

I am using Remix IDE with the Remix VM (Shanghai) environment. In a Javascript unit test, I would like to send Ether from the main account to another account. Here is a minimal reproducible example: /*...
Max Poofing's user avatar
0 votes
1 answer
140 views

Why do i keep getting some transaction failed CALL_EXCEPTION error when sending a transaction through client

i have created a function that should allow me to join a channel for a price. this is like some on and off type of thing. It worked yesterday and now it doesnt want to work. I am pulling my hair out ...
lyub12's user avatar
  • 1
0 votes
1 answer
20 views

Help with “web3 not defined”

I am cloning a tutorial https://github.com/techaddict0x/liquidityminer And when I run the debug console I get the error “web3 is not defined” The code is the exact same, looked all over the internet ...
Jackson T.'s user avatar
0 votes
0 answers
32 views

Can I allow a user to sign a contract, and then based on that contract to make a transaction without approval?

For example, let's say we have a sender and a receiver. A is the sender and B is the receiver. For exampple I have a website. Using js, user A signs a contract, and by hitting the donate button on ...
Sandu Bujor's user avatar
0 votes
0 answers
160 views

About IPFS client add() function

I am digging into ipfs field in order to start a NFT project so that I am working with frontend with ipfs-http-client npm package (npm i ipfs-http-client). My simple test code is like below: const { ...
Eric Lee's user avatar
  • 161