Skip to main content

Unanswered Questions

500 questions with no upvoted or accepted answers
9 votes
1 answer
2k views

Merkle tree whitelisting

Ive been trying to whitelist huge amount of addresses with merkle tree. Here is my json: [ "0xb860BA0E67C8......5ca4b4720d49F549AE8faA", "0xaF019d749865.......f044C1A534e1eC9F0D353"...
7 votes
1 answer
1k views

How to Catch Connection Issues to Web3 Provider using Web3.js

My node.js script is able to successfully connect to the Web3 provider when both the private key (using truffle-privatekey-provider) and the provider host URL are correct. let privateKey = ..., ...
5 votes
0 answers
4k views

Contract call: data out of bounds

I'm working on a nextjs/react project in which i want to fetch the health factor of an address on AAVE. This can be done by calling getUserAcountData(address) on the lending pool contract. I can ...
5 votes
1 answer
590 views

Accessing custom JavaScript functions via RPC API on Geth

Geth allows me to define & load my own custom JavaScript functions with --preload flag or require() on Geth console. But is there way to access my functions via RPC interface? Like : curl -H "...
4 votes
1 answer
719 views

Ethereum Wallet sync completed and ETH balance went to 0

I ran Ethereum Wallet for the first time on my Macbook Pro and, as it was syncing with TestNet, I selected Develop -> Start Mining. I saw the ETH balance increase steadily to 65 but then, it seemed ...
3 votes
2 answers
860 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, ...
3 votes
1 answer
77 views

from where do we give the gas fees while deploying from vscode on a testnet?

just a quick question I was following the patrick collins course on solidity with javascript and in it, we deployed a contract created on vscode using hardhat deploy on a testnet rinkeby But since ...
3 votes
0 answers
154 views

Read from a testnet Rinkeby contract with hardhat script

I am trying to read state variables (using hardhat scripts) from a contract deployed on the Rinkeby network. I use the script below but it returns 'undefined' as if it can't read from the contract. ...
3 votes
0 answers
627 views

How do I check if an IPFS-Hash is valid or not, as an input?

I wanna store Ipfs-hashes (Content Identifier) on the blockchain in the code below. And because it's public and anybody can use it, I want to make sure the function only accepts valid Cids (i.e., the ...
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 ...
3 votes
0 answers
2k views

EIP-712 typed signature for arrays

I'm trying to generate a typed signature for an array in JavaScript based on EIP-712 and using eth-sig-util. My problem is that I need to sign an array. It says in the specification to use Type[] or ...
3 votes
2 answers
385 views

Web3JS incorrect return value

When I return a string array with web3 I don't get the original array as expected, but rather I get an array of the same size, with the index off by one. So instead of ["One","Two","Three"] I get ["",...
3 votes
0 answers
52 views

Reconstruct sender address from signature

I am using a service that wants me to verify that the data it returns to me is correct before I use it. The service returns something that looks like the following: { "signature": { "v": ...
3 votes
0 answers
267 views

Where is the latest MetaMask hello world dapp example?

MetaMask recently added a new permissions check. I'd like a copy-pasteable hello world dapp that includes all best practices and can check the balance of the current user's ERC20 balance for some ...
3 votes
0 answers
876 views

Mnemonic and HD Path in Ganache and ethereumjs-tx gives different private key and address

I am having difficulty reproducing the private key and address using the mnemonic and HD path provided by Ganache. Mnemonic weird farm vast surge upper truth answer end radar impact mind jeans HD ...

15 30 50 per page
1
2 3 4 5
34