Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [contract-deployment]

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

2
votes
1answer
56 views

Deploying a smart contract from EVM Bytecode via rpc calls

I am currently trying to deploy a smart contract with bytecode in a private Ethereum chain, using the "dev" chain of the parity client. For this, I compiled the following contract: pragma solidity ^...
-2
votes
1answer
16 views

What other function calls can freeze a smart contract like the pause() function?

I'm learning to audit Ethereum smart contract code for clues if a smart contract can be frozen or not. Many smart contract creators claim their contracts are "unstoppable", but I'd like to know if ...
0
votes
1answer
17 views

Why I can't deploy a smart contract to a specific public key if i just generated and own this publickey/private key?

I am writing an explorative article about the actors/assets model for Ethereum 2.0 (https://ethresear.ch/t/ethereum-2-0-data-model-actors-and-assets/4117). Are there some reasons why is it not ...
0
votes
1answer
14 views

Deploying contract via Remix costs less gas than deploying via javascript

When I launch my contract via remix, it launches with no issues. When I try to launch the contract via my javascript web3, using the same gas price and gas limit, it fails b/c it ran out of gas. This ...
0
votes
2answers
21 views

Deploy multiple instances of same contract

I am developing a decentralised notary app, using truffle/web3/react. It need to deploy multiple instances of a same contract. I managed to deploy multiple instances of a contract, MyContract via a ...
1
vote
1answer
29 views

Convert contract creation code to contract source code

I already get the bytecode of a contract from web3 through this method: web3.eth.getCode(address), but I am having trouble decoding this code to a human readable form. How do I do it? Take the OMG ...
0
votes
0answers
21 views

How to correctly input an array of addresses as constructor parameter in Remix IDE? For deploy to ethereum mainnet!

I have a smart contract where an array of addresses is the input parameter for the constructor. Deploying to Ropsten works with writing the array like ["0x97k...", "0x08et...", "0x094hg..."], but when ...
0
votes
1answer
13 views

Power of signing transactions and what you can do with that

I have been playing around with state channels and am starting to see the power of signing information/transactions, but haven't got a completely clear idea of what I can do with them. I think I can ...
0
votes
1answer
18 views

Deploy contract using another contract

I've seen some example's, where the contract deploys other contract (e.g. this one), but is it possible to do so using binary of the contract? something like: function deployContract(bytes ...
1
vote
1answer
27 views

Deploy contract as Authority in Parity PoA private chain

I deployed a Proof of Authority chain with 2 nodes, but when I try to deploy a contract with one authority account, it says that there is unsufficient fund in the account. I though PoA didn't rely on ...
2
votes
0answers
40 views

Why is putting data to storage more expensive during the deployment of contract than storing the same data by a method?

I am working with truffle and solidity (v0.4.23) and found out that when I pass in an argument of constructor some bigger amount of data (16kB) that are saved to storage of a smart contract, it is ...
0
votes
1answer
23 views

Problem watching events without invoke functions in the Smart Contract

I have an event which is sent each time when a contract is deployed. It is launched in the constructor. I have a Dapp where I want to watch this event to send a tx each time that a smart contract is ...
-1
votes
1answer
21 views

Understand inter-operation between typical DApp and its underlying smart contracts

I am a newbie to Ethereum and start to study some typical implementations of commonly-used DApp. So basically for the popular dapp on this list (https://www.stateofthedapps.com/rankings/platform/...
0
votes
2answers
26 views

Getting error while deploying with web3 version 1 using async wait

I am trying to deploy my code to Infura network i compiled and i got no errors but now when i am trying to deploy i am getting error const HDWalletProvider = require('truffle-hdwallet-provider'); ...
0
votes
1answer
24 views

Deploying fails with different compile version

I'm trying to implement a simple card game. Actually, everything is working fine. Until I tried to move from 0.4.0 to 0.4.22. Any idea what is going wrong? Thanks a lot. And here the code: pragma ...
1
vote
1answer
16 views

Testing deployed contract on Truffle

I'm having trouble testing a contract using truffle. I have the latest version of truffle installed as well a TestRPC. It's to my understanding that the latest version of truffle comes with a ...
0
votes
0answers
31 views

smart contract and 2 permissioned blockchain networks

I have two permissioned networks and each network has its own nodes(for example, Net1: Nodes X,Y,Z and Net2: M,N,O) where each node get the data of its own sensors and store in blockchain and then ...
1
vote
2answers
32 views

Estimate Gas Price (not Gas) using Web3

Using Web3, we are able to estimate the amount of gas needed for a transaction let estimatedGas = web3.eth.estimateGas({ to: "0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe", data: "...
1
vote
1answer
21 views

How to deploy smart contract with visible source code (etherscan)?

I'm trying to deploy a contract to the rinkeby (hope that thats the network to use for beta testing). Deploying worked with the command truffle migrate --reset -f 2 --network rinkeby. Unfortunately,...
0
votes
1answer
13 views

What do I put in the “ifSuccessfulSendTo” field in a crowdsale contract

Here is the code: pragma solidity ^0.4.18; interface token { function transfer(address receiver, uint amount) external; } contract Crowdsale { address public beneficiary; uint public ...
1
vote
1answer
13 views

Do I need to deploy token and crowdsale contracts from different accounts in MetaMask?

Do I need to deploy token and crowdsale contracts from different accounts in MetaMask and do I need a third account to send proceeds to if successful?
1
vote
1answer
28 views

Deployed Smart contract methods are not updating the value when restart the geth instance.Why?

Started Geth using following command geth --identity "testpvtnode" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir <pvtnetdatapath> --port "30303" --rpcapi db,eth,net,web3,personal --...
1
vote
0answers
31 views

How to get around EIP-170?

I'm coding a contract that grew so much it is sizing bigger than the limit on EIP-170. I already replaced everything I could on inheritance and instanciation of other contracts with interfaces in the ...
3
votes
1answer
35 views

How should I store mainnet truffle artifacts?

Obviously, I shouldn't upload my private key or personal infura credentials to my repo, but I was wondering what was the best way to track main net truffle artifacts. Generally speaking, for test ...
0
votes
1answer
55 views

How to interface with a deployed Ethereum smart contract?

I want to create an interface to interact with my smart contract. I have got an example from the following link. Counter Before implementing my contract, I have tried to use the given example.But it ...
1
vote
1answer
28 views

How to view and access the smart contract deployed by some other node in the Private Network?

If First node in the private blockchain deploys the contract and second node in the network wants to request data from that contract, then how the second node will send request to the smart contract?
1
vote
0answers
27 views

Error in mist : exceed block gas limit

I am trying to deploy a smart contract in private network using mist, but when I deploy my contract and provide transaction fee as 0.04 ether it throws error as exceeding block gas limit. Here is the ...
1
vote
1answer
10 views

How to i display information from a smart contract on my wordpress website [closed]

I want to display specific information from a smart contract on the main ether network on a wordpress website i can't seem to be able to do that, all tutorials only show test networks. the smart ...
0
votes
1answer
31 views

Geth/Remix Error: gas required exceeds allowance or always failing transaction.How to solve this issue?

I have tried to deploy the example given in the following link(using remix and geth).While deploying, an error occurred in both geth and remix. And I found that the usage of "require" causes the ...
1
vote
1answer
25 views

Is running a ethereum node necessary to deploy contracts with JSON RPC?

everybody, I'm currently trying to learn how to automatically deploy a smart contract to the Ethereum blockchain and I heard of the JSON RPC way of doing that. There are the eth_sendTransaction and ...
0
votes
0answers
15 views

How to get the runtime binary code from the LLL compiler?

The Solidity compiler solc has the option --bin-runtime which outputs the binary of the runtime part of the contract. That is the code that will actually be deployed on the blockchain, instead of the ...
0
votes
2answers
46 views

What is wrong with this code, deployed but showing error while sending ether?

I have tried to compile this code for crowdsale and also have deployed the contract on Rinkeby Network. But each time I send a transaction, it says Warning! Error Encounter during Contract Execution [...
0
votes
1answer
23 views

How to deploy dependent contracts on MainNet using geth?

Suppose I have a contract A that depends on a contract B and an interface I. contract B { ... } interface I { ... } contract A is B { I objectSample; ... } On a standard deployment where A ...
0
votes
0answers
32 views

Deploy contract in parity Ethereum

I'm a beginner about parity ethereum. I'm using atomic swap to exchange money in 2 private blockchain. I used json-rpc to create 2 private chain and created HTLC (Hash time lock contract) to exchange. ...
0
votes
0answers
20 views

How to access the deployed contract from geth console?

I had deployed a smart contract in the blockchain and was able to access it. I was not able to access the contract when I started another geth instance.
0
votes
1answer
42 views

Contract deployed in private blockchain not returning output

This is my smart contract: pragma solidity ^0.4.24; contract Greet { string message; constructor() public{ message="I'm ready!"; } function setgreetings(string _message)public { ...
0
votes
1answer
41 views

what should be the proper block gas limit? [duplicate]

I have created a private network and trying to deploy my contract using Remix IDE. Remix is connected to my private blockchain at port 8545, my coinbase account have 2 ethers and I have set my Gas ...
0
votes
0answers
21 views

Is it safe to make the the code size to 128KB in ethereum private network?I have my concerns for DOS attack

I deployed a private Ethereum network with POA consensus. After deployment, I was deploying a smart contract (this contract is 600+ lines) for my application. I got this error: Error: oversized ...
1
vote
2answers
65 views

Getting this error: “error ”oversized data"

When I am trying to deploy my smart contract(It is a 600+ lines smart contract)through truffle framework (version 4.1.14) on Rinkeby testnet it is showing the above error.But when I am deploying the ...
0
votes
0answers
37 views

intrinsic gas too low on contract deployment

My question is about the intrinsic gas too low error when deploying a contract I've calculated the gasprice with: https://www.ethgasstation.info/calculatorTxV.php and my gaslimit is 5 milion. Could ...
1
vote
1answer
44 views

How to deploy contract with bytecode from etherscan?

For example, I want to deploy a contract to my local testnet. But I only have its opcode from etherscan. How to deploy the contract with just those runtime bytecode?
0
votes
2answers
31 views

From where this Ether came from?

Let's have a look at this address on Etherscan: https://etherscan.io/address/0xfbe0aFcd7658BA86be41922059dD879C192D4c73 First transaction is a Smart Contract creation, that costs about 15 ETH. Can't ...
1
vote
1answer
28 views

How to find deployed transaction hash of any given contract in chain, with just “contract address” information?

Am trying to write small application which will be able to find Contract deployment transaction with only input parameter - contract address. The application should be able to search entire net.,i,e ...
0
votes
0answers
26 views

Official OraclizeAddrResolver (OAR) in Ropsten and the Mainnet

Does anyone know the official OAR addresses in Ropsten (if it exist) and in the Mainnet? As example Rinkeby testnet has this address "0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48" as official OAR.
1
vote
3answers
71 views

Remix is not connecting to my private network

I have initialized the genesis file then run that command in the console- geth --rpc --rpcaddr 0.0.0.0 --rpcport 8549 --rpccorsdomain "*" --rpcvhosts "*" --rpcapi "network,admin,personal" --...
1
vote
0answers
102 views

Geth Sync Problems | Rinkeby, Ropsten | Deploy contracts

Get Geth to sync --> Rinkeby test network. For the love of god I just want to deploy a contract. I have deployed it to Ganache-cli, GUI, remixIDE, deployed with truffle/Infuria.io...I keep failing to ...
1
vote
3answers
104 views

Promise pending while calling a function from contract using web3

I have deployed a contract for producing hash : Contract Hash { function sethash(string id)public pure returns(bytes32) { return(keccak256(id)); } } Now I am calling this function ...
0
votes
1answer
58 views

How to interact with smart contract using web3js?

I have deployed a contract in rinkeby network. Now I have the address of the contract and ABI of the contract. var contract = new web3.eth.Contract(ContractABI, 'ContractAddress') But now how ...
2
votes
0answers
32 views

Interacting with a complex deployed contract from my other contract

For example, I want to call a create market function from augur in my contract. I'm using the recommended pattern, but there are additional contracts that this function brings in, ex ICash, IMarket ...
2
votes
2answers
31 views

how do you sign transactions programatically?

imagine there's a dapp you're building and on your website users type the receiver address, the value and what you do is send from that user's address to the receiver's address the value ether. My ...