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

binary size of contract

If one imports another contract and instantiates it with 'new', then I assume the binary of that imported contract must be fully included in my contract (increasing its deployment size accordingly). ...
0
votes
0answers
18 views

openzeppelin sdk deploy: missing contracts

I'm trying to deploy an Initializable contract using oz deploy but when it comes to pick it, it does not appear. My contract is a factory contract and also a GSNRecipient but it shouldn't make any ...
3
votes
1answer
332 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 ...
0
votes
2answers
592 views

How to find the block, when contract was deployed

I have contract address, and I want to find the block number, when it was deployed, to use it for loading events for this contract. Is it possible?
0
votes
1answer
259 views

How to upload contract metadata to Swarm from command line?

I'm running a geth node in a private network, and running swarm in singleton mode on that network. I'm deploying contracts via JSON-RPC; I'm not using JavaScript. I run the command solc --optimize --...
0
votes
1answer
382 views

How to deploy a smart contract on a private blockchain?

I have used geth to setup a local private blockchain. I have been able to setup two accounts and send ether from one to the other and mine the transactions. Now I am trying to deploy a smart contract. ...
0
votes
2answers
140 views

“Migrations” could not deploy due to insufficient funds

I'm getting the error: "Migrations" could not deploy due to insufficient funds. Sender doesn't have enough funds to send tx. The upfront cost is: 45000000000000000 and the sender's account ...
2
votes
1answer
961 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 ...
0
votes
2answers
79 views

Optimization Exception Remix Editor

I am trying to compile my solidity code in remix editor. I keep getting this error "Optimization exception during compilation". I was using solidity version 0.5.2 till day before yesterday. Now, It is ...
2
votes
1answer
130 views

contract does not gets deploy to rinkeby via Infura

I am trying to deploy my contract to Rinkeby network via Infura. But it actually does not get deploy to network when i run node deploy.js terminal does not spit out the address at which it is deployed....
0
votes
1answer
15 views

How the contract address being decide when deploy it in another contract?

According to How is the address of an Ethereum contract computed?, I know a contract address is decided by the hash of deployer address and nonce. How about the contract is deployed through another ...
4
votes
2answers
707 views

Importing a contract from another contract in NodeJS app

I'm using a function in my NodeJS app to deploy contracts. The user inputs the contract he wishes to deploy and the app deploys it. The structure of the app is . ├── app │   ├── models │   │   └── ...
0
votes
1answer
26 views

Can't unlock address when using ganache-cli

I want to unlock an address and fund it with ETH in ganache that I don't have its private key. So I run this: ./node_modules/.bin/ganache-cli --hardfork istanbul --port 8545 --gasLimit 8000000 --fork ...
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
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 ...
14
votes
5answers
2k views

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

I am using the below code to create the contact it give the error: Error: The contract code couldn't be stored, please check your gas amount. Code: primaryAccount = web3.eth.accounts[0]; //...
0
votes
1answer
25 views

When and where do I set ERC721 tokens' data?

I am currently working on a smart contract to sell ERC721 tokens. I understand that my code should have a function that allows me (the owner) to mint a token and add it to a list which stores all the ...
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
1answer
25 views

API node js with call and send to a contract without metamask

I am new in Solidity. I'm trying to create a API in node js, which can be use without a navigator like chrome with MetaMask. I would like to test it with postman. But i have some problems with web to ...
0
votes
2answers
38 views

web3js returns non-checksumed addresses!

Why does web3js 0.20.6 returns all-lowercase addresses on contract creation not a checksumed address?! How to deal with this trouble?
0
votes
1answer
52 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 ...
0
votes
0answers
46 views

Deploy contract with web3 with ABI in JSON file give me “SyntaxError: Unexpected token o in JSON at position 1” [duplicate]

I got problem with my deploy.js script to te deploy my smart contract with web3. When I run it, I always got this error: Attempting to deploy from account XXXXXXXXXXXXXX (node:25929) ...
85
votes
5answers
27k views

How is the address of an Ethereum contract computed?

How is the address of an Ethereum contract computed? What use cases are there for knowing a contract's address in advance?
0
votes
1answer
2k views

Error encountered during contract execution - Out of gas

I try to create a smart contract (Simple TokenERC20) with sendRawTransaction(). var firstMainadress = '0x3c7B83E0Fa6f19B1B61e80A73630cB5Db48b700C'; var secondAdress = '...
3
votes
1answer
525 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 ...
0
votes
1answer
76 views

Cannot read property 'sendEth' of undefined, 'sendEth' is function in smart contract

Hi I'm trying to interact with an Ethereum smart contract but it is always showing "TypeError : Cannot read property 'sendEth' of undefined" where 'sendEth' is a function in my smart contract Here is ...
7
votes
1answer
851 views

Deploy contract in web3j quorum problem

I'm trying to deploy a smart contract (7 nodes sample from Quorum) using web3j. It fails at get() to get the contract wrapper object. If I check the logs, a new transaction will show up, but if I call ...
0
votes
0answers
19 views

How to deploy a contract when a private chain start?

ethernet vererion: 1.8.x, language: golang 1.11.x I wrote a smart contract in solidity. The contract's contructor has two parameters like this: uint256 _initialAmount, string _tokenName I ...
0
votes
1answer
22 views

linking the CoreContract and the ERC20 token contract

What is the standard way of making the link between our CoreContract and the ERC20Token contract used by the Core Contract? Are people used to use inheritance like: MyCoreContract is MyERC20Contract { ...
1
vote
1answer
61 views

Calling a smart contract function with an unsigned transaction

I'm new to working with Ethereum smart contracts and would appreciate some guidance by the community on a task that I'm trying to solve. This is the contract I want to use - https://github.com/chatch/...
1
vote
1answer
123 views

truffle migrate --network kovan issue

When I run truffle migrate --network kovan in the terminal the contract deployment doesn't run. Just: Compiling your contracts...==================== >Eveything is up to date, there is nothing to ...
0
votes
1answer
524 views

Pass address[] array to Truffle deployer (MultisigWallet)

I am trying to deploy the MultisigWallet contract on testrpc. However, I can't figure out how to provide the address[] _owners constructor parameter in the deployment command. I've tried several ...
0
votes
1answer
229 views

Error: Invalid JSON RPC response | ropsten.infura

I'm trying to deploy my contracts to the ropsten test network, but I get this error. the message error : C:\Users\acer\test>truffle migrate --reset --network ropsten Using network 'ropsten'. ...
0
votes
1answer
354 views

Truffle tries deploy from unknown account

I am trying to deploy a contract to Ropsten using Infura with the config file truffle.js below. The deploy fails because the account listed in the error message has insufficient funds – however I do ...
1
vote
1answer
24 views

How to get active users of Dapp [closed]

Is it possible to have unique constraint on parameters of an event? I will have a number of users using my Dapp, and I have provided functionality to delete the users. So while reading from the ...
4
votes
2answers
910 views

Contract creation gas cost depends on code in library function?

I have a contract fooContract which is using a fooLib library, calling fooLib.foo(LibStruct storage param) The transaction cost to create fooContract seems to depend on the code in the fooLib.foo() ...
1
vote
2answers
38 views

How to send PAXOS token which has not transfer method?

I'm new in Ethereum contracts. I could implement sending USDT tokens through web3.php, and everything work well. Now, I want to add PAXOS and send such tokens through my system. But I found there is ...
1
vote
1answer
24 views

Proof of Stake Contracts, after deployment?

I'm curious, for reference lets use this tokens for example. They all seem to have close to the same contract. 1. PoSToken (POS) - https://etherscan.io/address/...
0
votes
2answers
71 views

How many functions allowed per contract? + solidity

I deployed a contract to ropsten and tried to call a method from frontend, but was getting TypeError: Cannot read property 'call' of undefined So I checked my instance via this.Test.deployed()....
0
votes
2answers
2k views

How to calculate gas for contract deployment @_@

Refer to the following: rinkeby: { host: "localhost", port: 8545, from: "my address", network_id: 4, gas: 4800000, gaslimit: 2100000000000 } When I set the gas to 4700000, I received the ...
0
votes
0answers
16 views

Smart Contact to store data from XLS/CSV file

Is there any existing code/work on how to store data written in an XLS file into Ethereum (geth) using a smart contract? I am trying to publish data that is written in an XLS file onto the Ethereum ...
1
vote
3answers
81 views

Ownership isn't allocated in the contract?

I've taken the below contract as an example from a tutorial and changed items highlighted in bold, as per IDE errors. What the contract should do is allocate ownership of the item to the account that ...
8
votes
1answer
1k views

Adding Wallet using web3.eth.accounts.wallet.add

On web3 0.20.1, I am using Infura to deploy a contract to Rinkeby. This probably requires me to add a wallet to web3.accounts to provide the gas needed. When I ran the following nodejs code, Web3 = ...
0
votes
1answer
21 views

Deploying Contract with React

I am trying to deploy a contract on react. But I can't seem to pull it off :( This is my code: this.myContract.deploy({ data:[big boi bytecode here], arguments: ['name', '...
1
vote
1answer
34 views

Ethereum Contract Simplify

I'm confused about 'contracts' in Ethereum. When do I need a 'contract'? For the scope of my app: I want user to be able to generate ETH address, receive and send out ETHER and I should be able to ...
1
vote
2answers
1k views

On mainnet Gas required exceeds allowance or always failing transaction

When I try to deploy contract, the error comes up: gas required exceeds allowance or always failing transaction on mainnet. contract Crowdsale { using SafeMath for uint256; // The token ...
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
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
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 ...

1 2
3
4 5
21