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
0
votes
1answer
23 views

“VM Exception while processing transaction: invalid opcode” only with Byzantium hardfork

i'm testing my Smart Contract with Truffle and Ganache, everything works fine while using hadfork version "Petersburg", but when i switch to Byzantium i receive this error while truffle performs ...
0
votes
1answer
16 views

Deploying contract to infura via @truffle/hdwallet-provider is hanging

I created a contract and deployed to Ganache test network successfully but it is not deploying to infura. //this section is clean. worked for Ganache var output = JSON.parse(solc.compile(JSON....
0
votes
1answer
18 views

Problem with Syntax in Solidity with sale contract

Good evening. Well, I have really been battling with this and have followed instructions to the "T" but somehow i'm not getting the Syntax right on Solidity. I'm using Remix in my Web.3 Browser. I ...
0
votes
1answer
27 views

Error when deploying contract in geth with truffle ? --> Returned values aren't valid, did it run Out of Gas?

I have deployed a contract in a geth private network by using truffle. I can send transaction via my UI in html / nodejs but i am not able to do a call to retrieve informations. If I do, nothing ...
0
votes
1answer
25 views

What are the steps to send ERC-20 tokens?

I need to send USDT and other ERC-20 tokens via Geth on Ethereum. I'm using PHP and Web3.php library to work with Ethereum. So far, it worked well for everything. Now, I need to start sending tokens ...
0
votes
1answer
18 views

Contract inheritance to share same storage in Proxy pattern for upgradeability

Please bear with me here, I have been trying to figure it out myself but couldn't. I am trying to learn upgradeability with a Proxy pattern .https://blog.gnosis.pm/solidity-delegateproxy-contracts-...
0
votes
1answer
15 views

How to include constructor arguments in bytecode for smart contract deployment in genesis block?

Please excuse if the title is not perfectly accurate but I had a hard time fitting my problem into 1 question. If you have a better title please feel free to suggest it and i will edit it. I want to "...
1
vote
1answer
15 views

How to pass constructor parameters to solc?

I'm trying to compile a Smart Contract to bytecode using solc. I'm on a Ubuntu VM so I have to rely on a simple-to-install cmd line application. Compilation works fine but it seems like I can't pass ...
0
votes
0answers
15 views

Which contract bytecode to deploy? [duplicate]

I the build/contracts/*.json files there are two bytecode fields: "bytecode" "deployedBytecode" What is their difference and which of them to deploy?
1
vote
2answers
29 views

Contract deployment with “truffle-contract”

My purpose is deploying a smart contract to a private network with Node-js. I work on Truffle and Ganache. I tried it with "truffle-contract". But in deploying process an error occurs. My contract ...
0
votes
1answer
22 views

What is .new()?

I am using the following code to deploying a smart contract to a private network with Node-js. But the error TypeError: contract_object.new is not a function occurs. What are .new() and the error's ...
1
vote
1answer
38 views

Transaction does not get mined on rinkeby

so I'm trying to deploy my first contract on rinkeby using web3 and truffle/hdwallet-provider. even with different gas prices it doesn't get mined.Please help out. const HDWalletProvider = require("@...
1
vote
2answers
43 views

Assigning address, data, and gas to smart contract to deploy with Node-js

I used this guide to deploy a smart contract with Node-js. I followed as far as my contract was created as an object. Because the mentioned guide is old some web3 methods changed nowadays. So it looks ...
1
vote
3answers
28 views

Deploy smart contract with Node-js

I want to deploy a smart contract with Node-js. I followed this guide but an error occurs where i effort instantiate my smart contract. app.js: var Web3=require('web3'); var fs=require('fs'); var ...
0
votes
1answer
14 views

Deployment transaction mined but contractAddress still empty

I'm trying to deploy a very simple smart contract on Ropsten through Infura When I launch (on Ubuntu) my deploy.js script, everything seems to work except I don't get the contractAddress in the ...
3
votes
1answer
35 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 ...
0
votes
0answers
25 views

Can I get a deployable bytecode from a contract?

In my truffle build files there are two types of bytecode for each contract: bytecode deployedBytecode web3.eth.getCode returns only the 2nd one. Can I access the original bytecode from web3? It ...
0
votes
1answer
39 views

Deployed contract address is getting undefined after few days on private network

I have a private blockchain where I am able to deploy my smart contracts successfully and then I am getting the address of my smart contract which I am storing on my relational db. In geth console ...
0
votes
0answers
20 views

Contract not getting deployed and no failed transaction is shown on rinkeby.etherscan.io

I deployed this same contract a week ago and it deployed successfully. Now when I try to deploy it I get a message in the console telling me 'Attempting to deploy contract from (my account)' but then ...
0
votes
1answer
56 views

Cannot create contract from another contract - truffle and ganache

I'm trying to write a test with ganache and truffle to create a contract instance from another contract. Everything works in Remix but it doesn't in ganache. This is the code const assert = require('...
0
votes
0answers
32 views

Unable to change/read local variable in a smart contract on a local private geth blockchain

I trying to create and test an ERC-20 Token on a local geth blockchain. I tried compiling and testing my contract on Remix's Javascript VM environment and it works fine. Then, I wanted to try ...
3
votes
1answer
82 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 ...
0
votes
0answers
20 views

Could you add a contract address in place of a library address when editing the bytecode before deplyment?

After compiling a contract that uses a library it is necessary to go into the compile contract bytecode and remove a piece that looks something like "_________library__address______" and replace it ...
1
vote
1answer
56 views

ethers.js Recover public key from contract deployment via v,r,s values

I'm currently trying to get the public key of the user that deploys a contract. Unfortunately I can't make it work. I am trying to achieve this solely by using ethers.js as I don't want to bloat my ...
0
votes
2answers
33 views

Save data in transaction generated through a smart contract [closed]

I want to lunch a clustering (procedure) algorithm in off_chain on data recorded in an IPFS. Input: my data, k: number of cluster or class Output: data clustered or labelled in class k How to save ...
0
votes
2answers
26 views

What triggers a transaction to be recorded on the Blockchain?

I am new to blockchain development. I am trying to understand where, when, and how a transaction is sent to the blockchain to be recorded. Here is the sample code I am studying: pragma solidity ^0.4....
1
vote
1answer
24 views

How to deploy more than one contract with Remix

I'm trying to deploy my contracts with Remix to Ropsten, but I don't know how to do it. Can you help me? (I have a ERC20 token contract, and a CrowdSale contract)
1
vote
1answer
63 views

Remix Browser and Quorum Local Node

When i try to deploy any contract using quorum local node in remix browser with solidity version higher than 0.5.0, the contract gets deployed but any transaction to interact (fetch / update) the ...
0
votes
0answers
71 views

Error: Returned values aren't valid, did it run Out of Gas? during deployment of huge number of contracts

I am trying to deploy very large number of contracts (more than 300 thousands) with automine option at Ganache GUI .. Is it possible to do such experiments ? when i want to deploy such huge number of ...
0
votes
1answer
129 views

UnhandledPromiseRejectionWarning: Error: Returned error: nonce too low

I am trying to deploy some contracts on Ropsten network. Here is my code async function finalDeploy(r){ for(i=0; i<constructorParams.length; i++) { const options = { data: '0x' + ...
0
votes
1answer
26 views

Could not deploy on Ropsten network using Truffle

I have following truffle-config.js file const fs = require('fs'); const HDWalletProvider = require("truffle-hdwallet-provider"); const secrets = JSON.parse( fs.readFileSync("abc.txt").toString()....
0
votes
1answer
26 views

General practice on updating contracts on a blockchain?

I have been searching around a lot but couldn't find the answer to this. My understanding is that one a Ethereum blockchain, there should be one/multiple types contracts. Once live, those contract ...
2
votes
0answers
29 views

Solidity Contract Length [duplicate]

What is the max length of solidity contract? I have been trying to deploy a contract of 328 lines of code on Remix Browser with a locally created Quorum Private Permissioned Node. I get the ...
1
vote
0answers
29 views

Is there a way to deploy a contract using bytecode only (to Ropsten …)?

One solution on medium.com describes how to do that via myetherwallet but it's the old verion of myetherwallet where you can switch between ropsten/mainnet - right now I can't find how to switch to ...
2
votes
0answers
21 views

Address to create a contract

This query is for informational purposes, with something that has had me in doubt all night. I am trying to send a self-signed transaction for the creation of a contract My Tx transaction to send is ...
0
votes
1answer
65 views

Unable to call methods on my deployed contract

Problem: All method calls to my deployed contract return null Versions: Geth: 1.9.9-unstable Git Commit: c2d65d34d5c6f27b8d1a52280964023a3eefd66e solc: Version: 0.5.13+commit.5b0b510c....
0
votes
0answers
27 views

Why does this code outputs error:“unknown account”?

Python code: from web3 import Web3 import json web = "http://10.0.141.114:8545" web3 = Web3(Web3.HTTPProvider(web)) abi=json.loads('[ { "constant": false, "inputs": [ { "name": "_cad_number", "type":...
0
votes
1answer
79 views

How to download contracts by address from Etherscan using web3.js

I want to download all contracts (open source code) from etherscan.io using Web3js. Etherscan gives only the list of such verified open source contract with txHash, name, and their addresses. Is there ...
0
votes
1answer
35 views

Could not deploy contract with valid data

I have downloaded contracts with their abi and json. I have to deploy them. when i extract bytecode from downloaded files and then assign it to my data variable to deploy contract whic gives following ...
1
vote
3answers
79 views

How do you implement a front-end contract with back-end functionality in Solidity?

How do you create a front end contract that calls a back end with the idea of being able to upgrade or change the back end contracts without having to redeploy the front end contracts?
0
votes
2answers
57 views

Not able to get deployed address of smart contract

Error: connect ECONNREFUSED /home/sanya/.ethereum/geth.ipc at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1106:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: '...
1
vote
0answers
55 views

Easiest way to deploy contracts from Trezor/ Ledger?

I know about Remix and that you can connect your hardware wallet with MetaMask, but, as of Nov 2019, I get this error many times: creation of Contract errored: Error: TransportError: Failed to sign ...
0
votes
0answers
20 views

Does a contract creation failure leave the target address with nonce 1?

When contracts are created, they start with nonce 1 not nonce 0. This is since the implementation of EIP-161. The ETH wiki page on nonces outlines what happens when a contract A tries to create a ...
0
votes
1answer
48 views

Kovan contract creation gas limit behavior

I have a fairly large contract that I must create on Kovan network for testing. There is fairly weird behavior occurring when I am trying to create the said contract. Behavior being: whenever ...
0
votes
0answers
17 views

cloning div container number of deployed child contracts time and put their data inside div container

Sorry for the silly question. I have a div container "product-card" , I want to loop the number of my deployed smart contracts time. every time when I loop I want to clone this div container and ...
0
votes
2answers
111 views

app.vote(1, {from: web3.eth.accounts[0] }) not working

I am following a tutorial from Dapp University about building Election Smart Contract. When I run this command in the console: app.vote(1, {from: web3.eth.accounts[0] }) I get the following error: ...
0
votes
1answer
25 views

Is there still a contract size limit?

I have a contract on chain and the deployed bytecode is 36.201KB, but EIP 170 limited the contract size to 24.576KB. Can anyone tell me how I was able to deploy a 36.201KB contract? https://etherscan....
1
vote
1answer
61 views

Cannot deploy new contracts with pending transactions (Ropsten)

I have a very strange and annoying problem. I am trying to deploy a new contract however it just keeps cycling. I have the same problem on the POA testnet and on Ropsten. Please see below: I have ...
0
votes
2answers
20 views

Set contract storage directly at deployment

Is there a way to pre-define a contracts storage when deploying it? Say I want a mapping to be filled with 1000 entries but want to avoid having to pay gas for adding every entry on its own. Since ...
0
votes
1answer
68 views

Need a guide to access my ropsten test network contracts through my command line and not remix

I have written and published a contract on the ropsten test network using remix. Now I want to access the functions of the smart contract from my command line (My PC) and not the remix IDE. Is there a ...

1
2 3 4 5
20