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
2
votes
2answers
419 views

How can I trigger a quorum private smart contract deployment from my js client app?

My question follows directly this answer to a similar question. I need for my client app users to be able to trigger private contract deployment. I've tried using privateFor with both the web3 and ...
0
votes
1answer
98 views

Using Coinbase ETH Wallet to save contracts/send transactions with web3

I am working on a node app where I am using web3, Infura & truffle-hdwallet-provider & a new MetaMask wallet. This process appears to work & I can successfully deploy contracts! I want to ...
0
votes
1answer
50 views

Deploying custom bytecode on the blockchain

Say I have custom bytecode which I want to deploy to the blockchain, for example, 0x6009 (PUSH1 0x09) and I want to create a contract which executes exactly that bytecode when called. As far as I ...
3
votes
4answers
445 views

Must a Solidity developer know the private keys to the wallet that is tied to a token contract?

To deploy a token contract, there must be a wallet address, am I right? Thus, must the coder be managing the wallet (with its private keys) that is used? I'm looking at the scenario where what if ...
2
votes
1answer
223 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 ^...
1
vote
1answer
83 views

Data persistence in ethereum smart contract across deployments

I have developed a SmartContract using ethereum which has an internal struct to store some of the privilege mapping. I find that whenever there is any change in the smart contract and the deployment ...
-2
votes
1answer
132 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
26 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
40 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
228 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
75 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
1answer
24 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
165 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
186 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
61 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
36 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
32 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
372 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
68 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
147 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 ...
1
vote
2answers
911 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
80 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
21 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
19 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
51 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
142 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
2answers
221 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
74 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
258 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
134 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
33 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
145 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 ...
2
votes
1answer
81 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
1answer
68 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
53 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
1answer
211 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
163 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 ...
1
vote
2answers
332 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 ...
1
vote
1answer
188 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
36 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 ...
2
votes
1answer
141 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 ...
1
vote
3answers
442 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
212 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
1k 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
862 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
48 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 ...
3
votes
2answers
139 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 ...
0
votes
2answers
33 views

This contract does not implement all functions and thus cannot be created. for myfirstcontract contract Bank is working [closed]

pragma solidity ^0.4.24; contract Bank { uint private value; function Bank(uint amount) { value = 10; } function deposit(uint amount) { value += amount; } ...
1
vote
0answers
323 views

how to get public key from metamask? [duplicate]

I'm creating a dapp. and I need my users on my website to provide public keys. As I am lazy to write a script which generates public/private keys automatically, I want to suggest an idea that they use ...
0
votes
1answer
61 views

Account used to Deploy not same as account associated with contract

So I am testing out a new contract I have been working on in Remix. I expected that the Account I selected would be the one associated with the actual contract, but it is not. In fact, I tried it a ...