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
1answer
118 views

Is it possible to send ERC-20 tokens with the gas from another account? [duplicate]

I'm creating a DApp platform which allows customers to send and receive USDT (ERC-20 Token). The problem I have is that if customer want to send some Tethers out, he should have enough ETH too as the ...
0
votes
0answers
19 views

If I set unlimited gas in a dev environment, am I just postponing dealing with a problem in my contract or is it a Truffle issue?

Booted up ganache with this command: ganache-cli --gasLimit=0x1fffffffffffff --allowUnlimitedContractSize -e 1000000000 because I was running into this error on truffle migrate in my development ...
0
votes
1answer
125 views

Error: This contract object doesn't have address set yet, please set an address first

I should click on a button in HTML such that by the clicking a smart contract must be deployed and its function must be run. But when i write the codes of the both operations in Node-js the followed ...
0
votes
0answers
23 views

Which of MyContract.new(…) and MyContract.deploy().send(…) is better to deploy a smart contract?

Suppose MyContract is the name of the given contract. I tried two commands to deploy that, MyContract.new(...) and MyContract.deploy().send(...), and the both worked. So, i interest to know which of ...
0
votes
1answer
30 views

Why my contract binary does not set?

My project is in Truffle. I programmed a smart contract and want to deploy it with JavaScript. But the following error occurs: Error: Contract error: contract binary not set. Can't deploy new ...
0
votes
0answers
19 views

web3.eth.getAccounts() returns no output

const deploy = async () => { const accounts = await web3.eth.getAccounts(); console.log("Attempting to deploy from contract ", accounts); }; The code runs but returns nothing and even the next ...
0
votes
1answer
48 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
2answers
58 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
25 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
60 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
84 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
26 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
23 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
29 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
19 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
88 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
2answers
33 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
47 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
3answers
60 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
66 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
25 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
39 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
31 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
49 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
23 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
99 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
37 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
98 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
25 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
129 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
58 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
33 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
33 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
97 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
113 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
210 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
54 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
31 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
30 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
34 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
30 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
78 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
33 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
127 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
2answers
63 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
133 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
88 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
79 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
21 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
78 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 ...

1
2
3 4 5
21