Questions tagged [contract-deployment]

The act of pushing a compiled smart contract in byte code to the Ethereum blockchain.

Filter by
Sorted by
Tagged with
1
vote
2answers
104 views

extended crowdsale smart contract not deploying to testnet

I'm trying to deploy the following crowdsale contract(extended from openzeppelin) to the ropsten test network using the remix IDE. The contracts compile but throws errors(Gas limit exceeded) when i ...
0
votes
1answer
80 views

Why is there a Maximum bytecode to permit for a contract?

Why is there a Maximum bytecode to permit for a contract in Quorum? i.e., MaxCodeSize = 24576 // Maximum bytecode to permit for a contract. One should be allowed to deploy a smart contract of any ...
0
votes
1answer
388 views

How can I transfer ownership to another contract?

I have a contract which inherits from contract Claimable by OpenZeppelin (see here): pragma solidity ^0.4.24; import "./Claimable.sol"; contract MyTestContract is Claimable { uint256 public id; ...
0
votes
1answer
254 views

Problem of deploying contract with “testRPC” and “remix” : “creation of contract pending …”

When I try to deploy a contract using testRPC and remix, I receive: creation of contract pending ... I tried even the default contract of http://remix.ethereum.org. Steps: First I open cmd. Then ...
0
votes
0answers
76 views

My smart smart contract won't send to multiple addresses

I have experienced some difficulties in getting deployed multisend/airdrop smart contract to distribute tokens to multiple addresses by interacting with the main contract. Each time it failed. Kindly ...
1
vote
2answers
227 views

Updating Smart Contract in Quorum with no change to the smart contract address

Understand that a smart contract address is deterministically computed from the address of its creator and how many transactions the creator has sent and thus every new smart contract deployment will ...
1
vote
1answer
44 views

Looking for good guide on how to deploy and verify source code of Smart Contract using Truffle/Remix

Can't really find good guides on how to deploy and verify smart contracts to testnetwork Ropsten. Would like to deploy multifile smart contracts including libraries. Are there any good HowTos already? ...
1
vote
1answer
108 views

How to give a non-zero balance to a contract at time of deployment using Remix?

In case we want to deploy a contract by web3.js we can easily determine the balance of the contract at time of deployment as follows: const thisContract = new web3.eth.Contract(abi); thisContract....
1
vote
1answer
300 views

“Gas estimation failed” on Ropsten using MetaMask!

I'm testing a smart contract using Remix, MetaMask, Ropsten. Yesterday I developed my contract on Ropsten network and everything goes in the right way. Today I was developing the SAME contract code, ...
1
vote
1answer
970 views

How to get the balance of a contract using web3.js?

I have deployed a contract as follows and determined its balance to be 5000 wei (value: 5000): const thisContract = new web3.eth.Contract(abi); thisContract.deploy({ data: bytecode, ...
0
votes
2answers
609 views

How to store a Big Number?

I need to determine an expiry date for a contract a for this I use the foloowing code as the constructor of the contract : constructor(address _recipient, uint256 duration) public ...
0
votes
1answer
315 views

Solidity: Send a new contract ether in constructor

I tried doing address NewContract = new SomeTest.value(1 ether)(); But this yields a syntax error. I try to call the payable constructor of a new contract with ether. What is the syntax for this?
0
votes
1answer
59 views

Is the Ethereum blockchain a list/chain of transactions or a list of contracts?

Ethereum newbie here with some general programming knowledge including basic Solidity. Below is my current mental picture of how Ehtereum works (please correct me if wrong). A contract is a class (in ...
1
vote
1answer
1k views

Getting this message in mist: Couldn't estimate gas, resorting to default parameters. Transaction is likely cheaper than the estimate

What is this error message in red: Couldn't estimate gas, resorting to default parameters. Transaction is likely cheaper than the estimate I have written a smart contract: pragma solidity ^0.4....
2
votes
1answer
550 views

Error from sendSignedTransaction: Error: Returned error: replacement transaction underpriced

I am the beginner in Ethereum stuff need guidance please help I am running a private ethereum network and using mist wallet here is my contract code pragma solidity ^0.4.0; contract MyFirstContract ...
0
votes
1answer
71 views

Is there a better way to implement search functionality?

Take the following code for example: pragma solidity ^0.4.23; import "./MyContract.sol"; contract MyFactory { address[] public myContracts; function createContract(string ...
0
votes
1answer
161 views

How can I access a contract deployed by another (deployed) contract?

I am currently working on voting contracts modeled after a particular electoral system. My intention is to first deploy the MasterConstituency contract manually and to have that contract deploy ...
1
vote
0answers
71 views

Why transaction hash isn't available inside solidity function call

I recently bumped into this Is it possible to get the transaction hash from within a Solidity function call? while I was looking for a way to save the transaction hash inside my contract. And ...
1
vote
2answers
309 views

Can't deploy to a private chain using Truffle

I created a private Parity chain using the official tutorial (https://wiki.parity.io/Demo-PoA-tutorial). Then I set it in my Truffle config: module.exports = { networks: { private: { host:...
0
votes
0answers
34 views

Solving forwarding issue in smart-contract deployment

I've tried to create a smart-contract that automatically forwards incoming transaction to parent address. The issue there is gas amount since I've failed to create a function that pays for gas from ...
0
votes
1answer
63 views

Is it good approach to interact with smart contract using c# library instead of Web3-js?

I'm learning Ethereum, and having web application development experience mostly with Microsoft Technologies such as ASP.NET MVC and WebAPI. I've learned Solidity recently!. After reading about ...
0
votes
1answer
149 views

Smart contract verification

I want to create a token using smart contract. Before deploying it on the blockchain, do I have to get the smart contract verified from the third party or can I directly deploy the contract?
1
vote
1answer
94 views

Deployment of DAPP smart Contract on Ethereum MainNet

We are developing a DAPP based on ethereum. Current we are developing based on testrpc and its working perfectly. We do want to decide on where to deploy DAPP. Can we deploy on public Ethereum ...
1
vote
1answer
42 views

Where do i put main address on this script to redirect eth to main address?

pragma solidity ^0.4.2; /** * Contract that will forward any incoming Ether to its creator */ contract Forwarder { // Address to which any funds sent to this contract will be forwarded address ...
0
votes
1answer
211 views

How to deploy a contract? [duplicate]

Say I have the Ballot Smart Contract on my Mist Remix IDE. Where do I go from there? I am completely lost. I compile the code. Then how do I deploy it. How do I provide the names for the proposals? ...
0
votes
2answers
49 views

Where the Smart Contract deployment charges goes?

I'm newbie to Ethereum, and finding answers of some questions that I have. I have learned about SC deployment that deploying the contract cost 0.01072934 ether, or about $3.21 USD So, where that cost ...
0
votes
1answer
59 views

Which is the correct spot to put destination address?

pragma solidity 0.4.21; contract Forwarder { address public destinationAddress; event LogForwarded(address indexed sender, uint amount); event LogFlushed(address indexed sender, uint amount); ...
2
votes
1answer
78 views

Interacting with a Custom Token Contract

I seem to be having problems interacting with a custom token contract. I am using truffle and ganache for my testing. I am trying to interact with the custom token contract so MyContract can ...
0
votes
1answer
161 views

Develop with Parity?

I've seen a few tutorials that explain how to write contract code right inside the Parity's web interface. However, web interface says it's deprecated, and when I open the desktop UI, it doesn't have ...
1
vote
1answer
399 views

How to deploy a contract using metamask and the callback?

I'm trying to deploy a new contract with metamask (in my javascript frontend app). The problem is that, when the receipt is returned, the address is "undefined" since, I suppose, the transaction is ...
0
votes
1answer
34 views

Contract deployment won't confirm in mist wallet

I'm trying to deploy a contract on the mainnet, and I'm using Solidity 0.4.24 I can only deploy the contract as byte code because I can't figure out how to upgrade the solidity compiler in mist (the ...
0
votes
2answers
78 views

How smart contract versioning work with compiler?

As Solidity is keep updating and so the compiler. In the beginning there was constant keyword which now is deprecated. So how does that smart contract is still working? If i make some contract with ^0....
0
votes
1answer
270 views

Basics and Workflow on Smart Contracts creation and execution

I'm confused about how the Smart Contracts work internally. I've read this: https://blog.zeppelin.solutions/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05 TLTR: there is an ...
1
vote
1answer
755 views

Error Deploying using truffle-contracts: Cannot read property 'apply' of undefined

I am using truffle-contract package to deploy a contract that was compiled by using truffle compile deploy.js const Web3 = require('web3'); var provider = new Web3.providers.HttpProvider("http://...
0
votes
1answer
33 views

How do I find how much money is stored on all deployed instances of a contract?

I am reviewing a certain contract, and would like to gauge how much money is stored on all deployed instances of this contract. Someone told me I can deploy a new instances of the contract to mainnet,...
2
votes
1answer
135 views

TimedCrowdsale.sol does not implement all functions and thus cannot be created

I found success in deploying Crowdsale.sol on ropsten testnet but I am finding trouble with TimedCrowdsale.sol I am using OpenZeppelin contracts of TimedCrowdsale.sol, SafeMath.sol, Crowdsale.sol, ...
0
votes
1answer
67 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 ...
1
vote
3answers
57 views

What’s the point of setting To when creating a contract?

The to header is normally optional when creating a smart contract… But though reading JSON-RPC documentation, I saw it was possible to set the To field of a transaction creating a smart contract ? ...
0
votes
2answers
38 views

Is Ethereum a common blockchain for all type of smart contracts (several thousands)

I have read that full nodes run all the contracts(several thousands) to verify them so aren't they using too much energy (and also thus spending money) to verify each and every contract that is ...
2
votes
0answers
251 views

Can you deploy a contract from a Ledger Nano S using Remix?

I have deployed a contract from a Ledger Nano S before by connecting to MEW and deploying using Bytecode and ABI of the contract. However I do not know what compiler version MEW used and so cannot ...
4
votes
3answers
1k views

Deploying a contract with Web3.js

I am trying to deploy a contract as explained in this section on Web3.js docs. As I understand it, I need to do the following: Create a new contract via web3.eth.Contract Take the returned-object ...
1
vote
0answers
499 views

Deploying a contract to Parity via Web3.js

I am trying to deploy a contract to Parity via Web3.js. Here is my code: let fs = require("fs"); let Web3 = require('web3'); let NODE_URL = "http://localhost:8545"; let OWNER_ADDRESS = "0x..."; ...
2
votes
4answers
703 views

use web3js and infura deploy contract

const Web3 = require('web3'); const fs = require('fs'); const solc = require('solc'); let web3; if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { web3 = new ...
0
votes
1answer
64 views

How do I deploy a contract when my blockchain isn't syncing?

I would like to deploy a smart contract using truffle but I got problems while syncing the etherum blockchain. There are always blocks left and the syncing process is never finished. I don't want to ...
-1
votes
1answer
86 views

why i have a lot of warnings in the function setprice part? Thanks [duplicate]

Can some one help in explaining why i have a lot of warnings in the ( function setprice ) part and why the contract dont compile in the Ethereum Windows wallet? I added the ( function setprice) so ...
2
votes
2answers
681 views

Constantly getting “Gas estimation failed” error when attempting to deploy ERC20 Token contract on Rinkeby testnet

I have included the code for the contract below. The error I get when attempting to deploy in remix via metamask is: Gas estimation errored with the following message (see below). The transaction ...
2
votes
1answer
33 views

Contract and the transaction that creates the contract

Are those different? Blockchain is a list of transactions bundled into blocks. Thus, it is clear that all transactions are recorded in the blockchain. But then where are the contracts stored?
2
votes
2answers
576 views

Creation of smart contracts (contract accounts)?

When I create a new Externally Owned Account it is not yet in the Ethereum blockchain. Information about this account appears (gets stored) on the blockchain only when the account balance changes. ...
3
votes
0answers
344 views

Truffle contract migration deploying same contract on multiple address

I deployed multiple contracts of which some are linked to one another using truffle migration on the testrpc . In my web3 call for a function of one of the contract, instead of returning the current ...
1
vote
3answers
662 views

Minimal investement is not working

uint256 public max_contribution = 50 ether; uint256 public min_contribution = 0.1 ether; function transfer(address to, uint tokens) public payable returns (bool success) { require(msg.value &...