Questions tagged [contract-development]

Questions regarding the development of smart contracts

581 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Is there any network collision in Rinkeby?

Am trying to deploy a test contract which is not getting mined and added. Trying for more than 2 days now, used the mist wallet to create it, chosen the highest price as per the mist wallet slider, ...
0
votes
1answer
133 views

Is it possible for a ERC20 token to be associated with an application account after the fact?

Say you want to create a new utility token offering, and owning that token will be useful in an application still in development. You don't want to dissuade people from purchasing by requiring a lot ...
0
votes
1answer
344 views

“Error: VM Exception while executing eth_call: invalid opcode” when accessing array

I'm trying to incorporate storage in a smart contract where participants of the contract will have their address stored in a address[] look up table participationAddressLUT. The contract initializes ...
0
votes
1answer
395 views

ABI for Etherscan verification

How I can get ABI in multiple contract code? if the code is here: Token address is: 0x4960a0Db832c3Bb503F3Da59a274D9385e0Ade5A Crowdsale contract: 0x7a76d1A86a8b801865eC9134552904366b327A45 I ...
0
votes
2answers
156 views

Cryptocurrency Tutorial: how to transfer on the geth console?

I build, compiled and deployed (to Testrpc) the token contract from the cryptocurrency tutorial. The token offers the transfer(addres _to, uint256 value) method, which I would like to call from ...
0
votes
2answers
234 views

Reading parameters from Smart Contract

I have a Crowdsale smart contract taken from the example provided by Ethereum on their website. The Crowdsale contract contains the addresses of the people who participated in the Crowdsale. Is there ...
0
votes
1answer
65 views

How to showcase stats of live crowdfun in a website?

I am not completely sure where to find the answer to this. I went over the etherscan.io documentation and I was still confused. I am not sure if I simply create an API related to my account and then ...
0
votes
1answer
460 views

How fast can I deploy to Ropsten?

Does anyone know how fast I can deploy to the Ropsten network? I am using the following command: truffle migrate --network ropsten and I have an instance of geth running. In the geth console, when ...
0
votes
2answers
92 views

Are there any code quality certifications or standards for smart contracts

In light of recent statistics on # of bugs in smart contracts and the DAO heists I like to know if there are any kind of smart contract quality certification framework , smart contract standards or ...
0
votes
3answers
138 views

New temporary struct causing state variables to be overwritten

I'm running an experiment where I'm trying to create the following behavior: Service owner deploys Experiment1 to the blockchain and is recorded as the owner. Owner then adds a user address, a user-...
0
votes
0answers
131 views

Using events and logs to get function returned value with a simple example

My question is related to this one: Can a contract function both change the state and return a value when it's called externally Question: How to read event/log content? I have a contract like:...
0
votes
1answer
123 views

Browsing a mapping variable

This is my contract where I am building a list of members who will use a addVote function. The allMembersVoted function always seems to return false even though the Remix debugger shows that, the ...
0
votes
2answers
334 views

Smart Contract this.balance property

When a contributor transfers fund to my smart contract the default balance is automatically increased. Is it possible to control this default property within our contract. Also, will a method ...
0
votes
2answers
214 views

Guidance on creating new token with value tied to fiat currency & fixed increases in price (newbie)

I would like to create a new token, but I'm a complete newbie when it comes to Ethereum and cryptocurrencies/blockchain in general. I'm also not a programmer. My goal is to create a fixed number of ...
0
votes
0answers
68 views

How to get contract adress when contract is deployed uisng other contract?

I have a smart contract with a function named, let's say, deployNewContract(..) this function takes some arguments and deployed a new contract based on the parameters. I am able to call the function ...
0
votes
0answers
528 views

“callback contain no result Error: Error: base fee exceeds gas limit” when call selfdestruct function (using Remix IDE)

I'm testing this simple contract. All the functions works well, but when I call the kill() function I'm getting this error: callback contain no result Error: Error: base fee exceeds gas limit I'm ...
0
votes
2answers
174 views

How does transaction is encrypted and decrypted? Should all the peers hold the public key of every other peer?

Let's say Peer A sends a transaction to contract.How peer B and peer C will be able to see this.Does they require to do encryption.If so then how?Does each and every peers should have the public key ...
0
votes
1answer
133 views

Callback error when contract is mined successfully

I am getting an error today, when tried to mine a contract to ethereum testnet. Even after the transaction is mined successfully (I can check that in the Testnet), the call back is executing the code ...
0
votes
1answer
37 views

How do I access the properties of a contract xyz from an enclosing contract abc?

With respect to the following code: pragma solidity ^0.4.23; contract xyz { uint x = 0; function setX(uint pX) public { x = pX; } function getX() public view returns(uint){ ...
0
votes
1answer
70 views

Transactions confirmation

I am using geth --dev --ipcpath ~/.ethereum/geth.ipc --minerthreads=5 console to run privatenet. So i use Etherium wallet to interact with it. The problem is that i need to do some transfer ...
0
votes
1answer
137 views

The contract code couldn't be stored, please check your gas amount. undefined

I try to deploy a big contract with 800 lines on private network of geth,but the geth report an error: The contract code couldn't be stored, please check your gas amount. undefined This is my ...
0
votes
1answer
19 views

create Tookens problem

For some time I have been writing my own tooken. I call it COIN I come across the last three problems: my fallback function does not work code: function () payable { createTookens (); he ...
0
votes
3answers
841 views

How to get events result using web3 1.0.0 version

function depositToEscrow(bytes32 _id) public payable returns(uint) { DepositToEscrow(msg.sender,orderdata[_id].buyer,msg.value,orderdata[_id].amount); } suppose this is my function in a smart ...
0
votes
1answer
74 views

ICO requires 20 ETH. I only have 5 ETH, can I set up a group buy with three others using a smart contract?

I want to be involved in an ICO but it requires 20 ETH. Is there a way I can utilize an smart contract, where 5 ETH is sent to a group buy ETH address. Upon 20 ETH being sent to the ICO eth address, ...
0
votes
2answers
193 views

Is there any tool for Ethereum which can convert smart contract into REST API similar to hyperledger fabric?

In Hyperledger Fabric, REST API can be created for chain code/smart contract using composer-rest-server. Is there any tool which can do the same for Ethereum Smart Contract? So that any front ...
0
votes
1answer
74 views

Parent-Child Contract Synergy Broken

When I call a function from a child contract which has been generated through a parent contract, then the mapping within the parent contract which consist of information related to the child contract (...
-1
votes
1answer
55 views

Unable to test a smart contract on ropsten test network

I launch and verify an ERC20 based smart contract on a ropsten test network which allows user to interact with the contract (send eth to it and the contract automatically send token in returns as in ...
-1
votes
2answers
303 views

Multiple transactions submitted at the same time asked me to ask questions

I submit two transactions at the same time, will be incorrect like that java.lang.RuntimeException: Error processing transaction request: known transaction: ...
-1
votes
1answer
96 views

Trying To Retrieve An Array Element Returns Null

This is my contract: contract MessageContract { string[] message; function setMessage(string _message) public { message.push(_message); } function getMessage(uint i) public ...
-2
votes
1answer
1k views

ParserError: Expected '(' but got identifier function OrderItem(uint _itemid, string _itemname) public returns(address){

browser/Logistics.sol:60:14: ParserError: Expected '(' but got identifier function OrderItem(uint _itemid, string _itemname) public returns(address){ ^-------^ pragma solidity ^0.4....
-3
votes
1answer
243 views

calling payable (solidity) method with python

I want to send two Ether from my node to my invest() method in the contract. But I don't know how to do it with python. Solidity: function invest() payable { value = msg.value / ...

1 8 9 10 11 12