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
3
votes
1answer
220 views

Safely deploying a contract with the same address in different chains

As far as I know, we can deploy a contract with the same address in different chains by using the same private key to create an account in different chains, and using that account to deploy the ...
3
votes
2answers
1k views

Transaction to deploy a contract still pending?

I made a sample smart contract and wanted to deploy it. I used mist wallet to do that and everything seems to be ok except the transaction is still in "pending" mode. Can you hightlight common ...
3
votes
2answers
376 views

Just Smart contract driven app is a DAPP?

I have same years working as a Java & JS fullstack developer, but I'm totally new to Ethereum's development, and I'm trying to figure out how to architect a Dapp (Smart contracts driven app). It'...
3
votes
2answers
2k views

Compiling Smart Contract in Java

I want to compile a smart contract (solidity code) in Java. Currently I am using the web3j library. When I run the method web3j.ethCompileSolidity(contract) I'm getting the following error: The method ...
3
votes
2answers
567 views

How to access testRPC which is on a server

all! I build a dAPP for a competition and only used to test it on testRPC. Now when I had submitted the app, the organisers wanted a running version for them to test. I tried deploying it on a server ...
3
votes
1answer
480 views

Gas not enough and not able to run functions

I am a new comer to the Ethereum and I am writing a piece of smart contract for my project. I used Win 10 and Mist 0.8.8 with the testnet that started with "R". The contract code has the functions of ...
3
votes
1answer
5k views

Error: Identifier not found or not unique. when deploying a smart contract which calls another contract

I am trying to call a contract from another contract. first contract is the source of items like a data table. second contract is like a logic layer for the items. I first deployed the contract1 and ...
3
votes
1answer
397 views

Please Help! ReplaySafeSplit contract not working after sending too much ETH

I am hoping someone has a answer to what I think is a relatively simple question. I started splitting my ETC from ETH using the ReplaySafeSplit contract. Some test and smaller transactions worked fine,...
3
votes
1answer
132 views

Contracts receiving multiple identical transactions

Assume a smart contract is used to add potatoes. Every time a person gets a new potato they send a transaction to the smart contract which adds 1 to the total potato count. Let's assume, within a ...
3
votes
2answers
93 views

how can library change state?

I have Very Interesting cases about Libraries. CASE 1: I read the following in the official solidity docs: Library functions can only be called directly (i.e. without the use of DELEGATECALL) if they ...
3
votes
2answers
46 views

Can I change the comments in a contract and still pass Etherscan verification?

Suppose that you have a contract, someone audited it, and you would like to use that specific version for compilation and deployment to Ethereum. Now, you want to verify the source code on Etherscan, ...
3
votes
1answer
293 views

Contract does not exist at address

I have setup a private Quorum network and successfully deployed contracts and executed contract functions using Visual Studio Code and remix. When i try to deploy the exact same contract manually ...
3
votes
2answers
86 views

Smart contract - require token balance in constructor

I want to build a smart contract which can only be constructed, if there's an amount x of a specific ERC20 token available to spend for this contract. So either the contract has to be allowed to spend ...
3
votes
1answer
2k 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 ...
3
votes
1answer
187 views

Upgradable Smart Contracts - Is there consensus between shareholders when upgrades occur?

It seems that upgradable smart contracts are the new wave of the future seemingly for the all the right reasons. How does this work for the "hello world" smart contract where two users make a bet on ...
3
votes
1answer
724 views

Strange output from truffle migrate --network live --dry-run

I can't get my contract to deploy successfully using Infura, MetaMask, and Truffle. When I run truffle migrate --network live I get this error: Error encountered, bailing. Network state unknown. ...
3
votes
1answer
2k views

ERC token not showing up in Etherscan.io search. Duplicate names exist

I created a token called LUV. There are other tokens with this name and they all show up in a search on etherscan.io but mine doesn't. The contract address is ...
3
votes
1answer
631 views

How can I deploy a smart contract via URL?

I want to deploy a smart contract via curl and send parameters in the constructor, I found this example but he does not send parameters, thankyou!!
3
votes
1answer
2k views

Truffle + INFURA remote provider deployment. Migrations not running

I am running into the same issue proposed by this question. I cannot resolve it because I am using a remote provider (INFURA), per this document. My code looks like this: var ethwallet = require('...
3
votes
1answer
550 views

How was this contract created with empty code?

I don't understand what happened in this transaction: https://etherscan.io/tx/0x0bd55bbf4dfb4e7b15bfed296be3330d5c1116b1bc399a75d3f849edc0d5ac45 The transaction created a contract, sent 1 ETH, ...
3
votes
1answer
390 views

Contract is sent and gets an address, but eth.getCode returns 0x

I'm trying to deploy a contract on a private blockchain network. My solidity code has a lot of variables used in it. The deployment does give me a contract address, however, when trying to retrieve ...
3
votes
1answer
933 views

Error contract code couldn't be stored, please check your gas amount

I get an error: Error contract code couldn't be stored, please check your gas amount. I know this error has been reported several times already. Strange thing is, until this morning, my dApp just ...
3
votes
1answer
2k views

what does verifying smart contract execution means?

I know that when somebody wants to run a function in a contract, she sends a transaction; and then a miner needs to run that function based on the function input received from the user, adding the ...
3
votes
1answer
465 views

No data is deployed in the contract address

I have followed the previous solutions to this problem as mentioned in this question: Mist: "No data is deployed on the contract address!" I also checked if the Estimated consumption fee ...
3
votes
1answer
177 views

Sealing a Smart Contract / Selfdestruct Remainings

Let's say there is a Smart Contract and different participants of the network interact with it. Under certain conditions (e.g. a certain method has been executed) there shall be no way to further ...
3
votes
1answer
446 views

Why contract's function that is deploy inside Solidity browser does not deployed inside geth?

I have my private Ethereum Network. Inside Solidity Browser: From Web3 Provider I have connected to my local ethereum node. I have pressed create button and successfully deployed my contract. Now I ...
3
votes
1answer
263 views

Deploy contract hangs in Mist

I'm not able to deploy any contract (the greeter contract does not work either) using Mist 0.8.6 in Windows. The deployment just hangs there and nothing really happens. Is there a way to figure out ...
3
votes
1answer
443 views

Making a contract in the geth console

I have the following code in a script name contract.js ( foo, pwd and id are replaced by their value in my actual script) var web3=require('web3'); personal.unlockAccount('id', "pwd") var aContract = ...
3
votes
2answers
546 views

How to delete contract records in mist wallet

I deploy too many contracts, so how to delete all contract records in mist wallet using one operation?
3
votes
1answer
348 views

What will be the format of data to execute a function from web

I have deployed a cryptocurrent on Private testNet from here. I have deployed two contracts, lets call them contract1 and contract2. Contract1 has less features than contract2 (like transferFrom() ...
3
votes
1answer
811 views

contract.address is undefined when deploying a contract with cpp-ethereum and ethconsole

I want to create new contract using cpp-ethereum (built from source) and ethconsole. I followed this guide: https://www.ethereum.org/greeter. I modified the contract to contain only one class ...
3
votes
1answer
492 views

Should callbacks be called twice from both MyContract.new and MyContract.myFunction on web3 API?

When I instantiate a contract with myContract.new() like this: MyContract.new({ from: addr, data: code, gas: gas, gasPrice: price }, function (error, contract) { if (!error) { ...
3
votes
1answer
2k views

Greeter variables are all undefined and contract doesn't run

I'm attempting to run the greeter contract on the live network. I'm following the commands as per the official tutorial, which worked on a test network when I tried it a while ago (on a different ...
3
votes
1answer
45 views

Link a library to a smart contract only with Solidity and bytecode

I work in Truffle development environment and use Windows PowerShell. My Solidity code is a test code and is simple. There is a library called Alireza that just compares two uint values. There is a ...
3
votes
0answers
37 views

how do I know that NFT is from the right person

I understand the NFT (at least solidity part).. There's something that's bugging me though. Let's say someone made a super great cat(cat1), published it to ipfs, then called the ERC721 contract and ...
3
votes
0answers
67 views

What happens in the account state when we pre-send ethers to a smart contract?

I'm asking this question in relation to this one : pre_sending Ether where the OP asked in a comment of the answer about what happens at the low-level when pre-sending ethers to a smart contract. As ...
3
votes
1answer
54 views

How can anyone publish a contract to an address which has been generated in advance?

There is a contract which source code tells that the contract address had been generated in advance (there is a comment there), before the contract was uploaded to the network. The address beginning ...
3
votes
2answers
523 views

Drizzle and Contract Instances

I am currently developing a dApp with Drizzle on top of ReactJS. My project consists of, basically, 8 .sol files. 4 of them are just abstract contracts that include the functions, structs etc. for ...
3
votes
1answer
616 views

Why do truffle compile or migrate commands fail silently?

Truffle v5.0.3 config: truffle-config.js module.exports = { // See <http://truffleframework.com/docs/advanced/configuration> networks: { development: { host: "127.0.0.1", //also ...
3
votes
1answer
966 views

Cannot deploy contract on private network with truffle: gas required exceeds allowance or always failing transaction

I'm writing a contract based on the ring mixer contract from here https://ropsten.etherscan.io/address/0x5e10d764314040b04ac7d96610b9851c8bc02815 I've tested it with ganache. Everything worked fine ...
3
votes
0answers
106 views

Why two contracts got same address?

I've been testing payments for shopping cart on a private chain. I create and deploy contracts to disburse payments among sellers. So if a shopper buys same items again the contracts for two carts ...
3
votes
1answer
454 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?
3
votes
1answer
507 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 ...
3
votes
1answer
363 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 ...
3
votes
1answer
70 views

Deploying smart contract through Truffle

I want to know when deploying smart contract using truffle, is there a way to do that without using the migration files? I won't be requiring the Migration features.
3
votes
0answers
504 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 ...
3
votes
1answer
816 views

Is it possible to use a solidity library inside another?

I am trying to use a solidity library inside another. The minimal code would be something like this: The deepest library: SLib.sol pragma solidity ^0.4.18; library SLib { struct SCtx { uint a;...
3
votes
1answer
775 views

Deploying on contract on main net - Error: insufficient funds for gas * price + value

Running geth v 1.7.3 truffle 4.0.5 truffle-config.js module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*" // Match any network id ...
3
votes
0answers
160 views

Smart contracts and ICO questions

I am trying to learn and understand how ICOs and the smart contracts used in them work and I am having a hard time understanding the following: Take for example ParagoinCoin, you can see here that it ...
3
votes
1answer
572 views

Are contracts deployed to the same address on different chains susceptible to replay or other attacks?

A contract can be deployed on different chains at the same address by using the same private key with the same nonce on each chain. Given that forking a chain opens up possible replay attacks on ...

1
3 4
5
6 7
25