Most Popular
1500 questions
11
votes
1 answer
What is DSProxy and how does it work?
Several Ethereum projects use DSProxy to make their protocols more user-friendly. What is DSProxy exactly and how does it work?
Paul Razvan Berg
- 17,902
- 6
- 73
- 143
11
votes
1 answer
TypeError: different number of components either side of equation
I am working on a project using ERC721. Code below
pragma solidity >=0.4.21 <0.7.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract Sketch is ERC721 {
string[] public sketchs;
mapping(string => bool) _sketchExists;
…
Simon Palmer
- 213
- 3
- 6
11
votes
1 answer
Difference between full node and bootstrap nodes in Ethereum?
I know that when a new geth instance runs it connects to the bootstrap nodes. What I want to know that do other nodes download blockchain from the bootstrap nodes or nor? Bootstrap nodes are highly available so why just simply connect to bootstrap…
Narayan Prusty
- 1,229
- 1
- 11
- 22
11
votes
1 answer
How to get string from hex on Smart Contracts results
On a Smart Contract called "mem" there is a function called "get()" that returns a bytes32 that is supposed to be a string. How can I decode the string? The result is an hex value. I have tried toString() on geth console, but I am probably doing…
Juan Ignacio Pérez Sacristán
- 3,550
- 9
- 43
- 73
11
votes
5 answers
Where can I find slides or videos from Devcon2 in Shanghai?
Where I can find slides, videos, etc. from Devcon2?
For now I only found this article: https://www.cryptocoinsnews.com/devcon-day2-sees-crowd-erupt-enthusiastic-applause/
underdog
- 1,190
- 2
- 12
- 24
11
votes
2 answers
How to fix: Warning! Error encountered during contract execution [Out of gas]
I have sent ETH to a contract address, and it "failed" the transaction saying it is: Warning! Error encountered during contract execution [Reverted]
contract address and transaction failure here:…
goodwin butler
- 111
- 1
- 1
- 3
11
votes
3 answers
Error: "message":"function \"Ballot\" arguments must include \"proposalNames\""}
I am trying below code to write Voting Contract referring to Solidity documentation pdf.
Code compiles without error but I am getting below error while deploying.
writing Ballot to app\meta\Ballot\Ballot.json
wrote:…
RaisKazi
- 159
- 4
11
votes
1 answer
Hardhat: Error: unresolved libraries, but why?
I'm attempting to deploy a contract using Hardhat (via scaffold-eth), but am getting the following error:
Error: Factory contains unresolved libraries. You must deploy and link the following libraries before you can deploy a new version of Factory:…
The Renaissance
- 2,749
- 1
- 17
- 45
11
votes
2 answers
Building a raw contract transaction with ethers.js
Can't find any good documentation on creating a raw transaction with contract data in ethers.js. The equivalent in web3 is adding the encodeABI on the data property. Any guidance on this?
This isn't working:
data =…
Michael C
- 453
- 1
- 6
- 14
11
votes
1 answer
Can an Ethereum address hold more than Ether?
Let me explain it with examples. On Bitcoin protocol, for example, you have Counterparty. As it uses embedded consensus, every XCP address is linked to a Bitcoin address. So if you hold bitcoins on that address, you can also hold XCP on that address…
Henri Lils
- 221
- 1
- 3
11
votes
2 answers
Trying to understand libraries
I have a library which I want to deploy followed by a number of differing contracts which link to it. However I seem to me missing some understanding about library deployment and utilisation.
The library contains structs and functional logic and the…
o0ragman0o
- 4,320
- 18
- 35
11
votes
4 answers
simulate transaction without sending to blockchain
Is there any way to simulate a transaction without sending it to the blockchain and find the exact error (or line of code), in case it fails if its mined?
Sowmay Jain
- 794
- 1
- 10
- 25
11
votes
1 answer
Is the ABI required to call a contract with ethers.js?
From the docs:
// The Contract interface
let abi = [ ... ];
// Connect to the network
let provider = ethers.getDefaultProvider();
// The address from the above deployment example
let contractAddress = "...";
// We connect to the Contract using a…
Paul Razvan Berg
- 17,902
- 6
- 73
- 143
11
votes
3 answers
Storing document/file in blockchain
I am planning to do a POC on blockchain for uploading and verifying documents. I was wondering if I can store a complete document in blockchain. After some research on net most of the example, I found keep the hash of the document in blockchain…
MadhukarChaubey
- 161
- 1
- 1
- 4
11
votes
2 answers