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
25 views

Implications/Impact Analysis of increasing the transaction size to 64KB in tx_pool.go to support bigger bytecodes deployment

As I have increased the transaction size to 64KB in tx_pool.go and rebuilt geth to support bigger bytecodes deployment (i.e., bigger, more complex and sophisticated smart contracts), would like to ...
1
vote
2answers
645 views

Truffle Migrate SyntaxError: Invalid or unexpected token

I am trying to follow the truffle pet shop tutorial and I am doing my first truffle migration. After this command: truffle migrate I get this error: SyntaxError: Invalid or unexpected token ...
0
votes
1answer
420 views

contract compiles and fails to deploy on Remix or local

GitHub File Link I can compile and deploy CredentialOrgFactory, and compile CredentialFactory but not deploy REMIX error: creation of CredentialFactory pending... [vm]from:0xca3......
0
votes
1answer
301 views

Infura not broadcasting my transactions

I am using Infura with the mainnet and web3py to interact with smart contracts and send transactions. Last week this same code worked fine, but today, trying to send the transaction for the deployment ...
0
votes
0answers
189 views

web3 remix cannot deploy contract

I have a problem when deploying smart contracts on remix. When I click create, I can see that transactions are passing through, from the blockchain explorer. I clicked multiple times, and this is the ...
0
votes
1answer
35 views

If a contract didn't allocate initial supply,what will happen?

Please Have a look at this contract 0x253b898233d2f29ed9c8d499789d651cf9d1818c created this contract,but if you check its source code,you will notice that the contract name is uppercased: Yet the "...
0
votes
1answer
52 views

Contract deployment out of gas, but was created anyway?

I have deployed a contract with Parity on Kovan, which did not show up in the contracts menu after contract deployment was done. I had to watch it manually to be able to see it in the contracts menu. ...
1
vote
4answers
83 views

Is our smart contract required gas,every time it executes.

form my understandings, after the first execution of a smart contract, the network will return the remaining gas to the contract sender. if so, how will the contract obtain gas for future execution??...
1
vote
2answers
527 views

Quorum - oversized data during contract creation - contract code size limit

While creating contract, I am getting the error "oversized data" during contract creation. Other than modifying the go-ethereum code file to increase the maxCodeSize, or splitting the contracts up, ...
1
vote
0answers
98 views

Etherscan: Verify and Publish Source Code - Error! Library Name and Address was provided but not used in the contract

Tried to verify my Smart Contract on Etherscan for Ropsten. Smart Contract is a library which actually also imports another library (which is already verified). Getting following error Error! The ...
1
vote
3answers
63 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 ...
0
votes
1answer
35 views

Contract structure for storing user application

I have a Nodejs application in which users fill up multiple forms and that data is saved to the centralized DB i.e MongoDB. Admin can review the user data and can push the user data to Blockchain to ...
2
votes
1answer
2k views

Deploying contract with parameters using web3.js and Node.js

I try to deploy a ERC721 contract. Which is from OpenZeppelin. My contract constructor wants two input string fields. constructor(string _name, string _symbol) public { name_ = _name; ...
1
vote
1answer
128 views

Can we store a deployed contract address in Remix Solidity IDE?

Suppose I need to use deployed addresses of three different contracts in any other program, then every time I need to copy the address from previous deployed contract and paste it, so is there any ...
1
vote
1answer
21 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 ...
0
votes
3answers
143 views

How to allow an account to withdraw from another one?

The goal is to create a contract which allows party B to withdraw from party A's account according to some formula. I don't want to use an escrow model, rather just to: Let A attest that they are ...
0
votes
0answers
73 views

Listing all the smart contracts deployed on ethereum [duplicate]

I want to list all smart contracts deployed on a private Ethereum chain, using Nethereum, and also those which were deployed by a certain address. I have seen here and here but I cannot get anywhere ...
0
votes
1answer
53 views

Sending contract's source code to deployed contract in order to deploy it

I am writing a factory contract in solidity. I want to be able to add some more contracts to be deployed by the factory after it has been deployed. I thought sending the contract's source code to my ...
1
vote
0answers
102 views

Gas requirement of contract deployment

I've recently been running into issues with contract deployment (receiving "Error: VM Exception while processing transaction: out of gas" during migration). It's been my understanding that the ...
1
vote
0answers
207 views

How to verify a contract with libraries deployed from Remix

I successfully deployed a contract with remix here on Ropsten Testnet: https://ropsten.etherscan.io/address/0x10273a926517b417015748da21e1287bab2da8f7 The Source Code is very simple but I'm using my ...
1
vote
0answers
244 views

Can't deploy any contracts in Main Net using Remix

I've been having trouble for a day now deploying a token in Main Net using Remix. Both Kovan and Rinkeby worked well and instantly but Main net would fail without any error messages. Now I tried ...
0
votes
0answers
64 views

Contract deploys fine on Kovan, fails on Main Net. Gas too low or what?

I'm deploying a contract using its bytecode in wallet.ethereum.org. I deployed it on Kovan and it went very smooth and fast, fee was 1782250 gas @ 4 Gwei price. With the exact same bytecode, I tried ...
1
vote
1answer
412 views

Help! How can I deploy to Mainnet

Spending months of studying and testing my code. It is now time to deploy to the mainnet. But unfortunately my Ethereum node takes ages to sync :( May I know if there is any alternative way for me to ...
1
vote
1answer
150 views

Unable to unlock account before deploying contract to rinkeby

Each time i try to unlock my account w/ password i get the error: Fatal: Failed to unlock account 0x1288AB0bf7FE0Ad09d7f28bd4Ab2C06332c625a2 (no key for given address or file) my geth command is: ...
0
votes
2answers
1k 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 ...
1
vote
1answer
586 views

How selfdestruct() works?

I'm wondering about how selfdestruct() actually works. Does it actually delete contract codes from the storage? Or just delete the contract address from state trie? If just deleting the contract ...
1
vote
1answer
75 views

Where the contract code located physically and how it can be accessed?

After deployed where the contract code physically is located at? Storage or ROM of each node? And how it can be accessed for execution? By contract address? Then, Does contract address act like a ...
1
vote
2answers
110 views

extended crowdsale smart contract not deploying to testnet

I'm trying to deploy the following crowdsale contract(extended from openzeppelin) to the ropsten test network using the remix IDE. The contracts compile but throws errors(Gas limit exceeded) when i ...
0
votes
1answer
94 views

Why is there a Maximum bytecode to permit for a contract?

Why is there a Maximum bytecode to permit for a contract in Quorum? i.e., MaxCodeSize = 24576 // Maximum bytecode to permit for a contract. One should be allowed to deploy a smart contract of any ...
0
votes
1answer
444 views

How can I transfer ownership to another contract?

I have a contract which inherits from contract Claimable by OpenZeppelin (see here): pragma solidity ^0.4.24; import "./Claimable.sol"; contract MyTestContract is Claimable { uint256 public id; ...
0
votes
1answer
278 views

Problem of deploying contract with “testRPC” and “remix” : “creation of contract pending …”

When I try to deploy a contract using testRPC and remix, I receive: creation of contract pending ... I tried even the default contract of http://remix.ethereum.org. Steps: First I open cmd. Then ...
0
votes
0answers
79 views

My smart smart contract won't send to multiple addresses

I have experienced some difficulties in getting deployed multisend/airdrop smart contract to distribute tokens to multiple addresses by interacting with the main contract. Each time it failed. Kindly ...
1
vote
2answers
283 views

Updating Smart Contract in Quorum with no change to the smart contract address

Understand that a smart contract address is deterministically computed from the address of its creator and how many transactions the creator has sent and thus every new smart contract deployment will ...
1
vote
1answer
47 views

Looking for good guide on how to deploy and verify source code of Smart Contract using Truffle/Remix

Can't really find good guides on how to deploy and verify smart contracts to testnetwork Ropsten. Would like to deploy multifile smart contracts including libraries. Are there any good HowTos already? ...
1
vote
1answer
125 views

How to give a non-zero balance to a contract at time of deployment using Remix?

In case we want to deploy a contract by web3.js we can easily determine the balance of the contract at time of deployment as follows: const thisContract = new web3.eth.Contract(abi); thisContract....
1
vote
1answer
315 views

“Gas estimation failed” on Ropsten using MetaMask!

I'm testing a smart contract using Remix, MetaMask, Ropsten. Yesterday I developed my contract on Ropsten network and everything goes in the right way. Today I was developing the SAME contract code, ...
1
vote
1answer
1k views

How to get the balance of a contract using web3.js?

I have deployed a contract as follows and determined its balance to be 5000 wei (value: 5000): const thisContract = new web3.eth.Contract(abi); thisContract.deploy({ data: bytecode, ...
0
votes
2answers
660 views

How to store a Big Number?

I need to determine an expiry date for a contract a for this I use the foloowing code as the constructor of the contract : constructor(address _recipient, uint256 duration) public ...
0
votes
1answer
330 views

Solidity: Send a new contract ether in constructor

I tried doing address NewContract = new SomeTest.value(1 ether)(); But this yields a syntax error. I try to call the payable constructor of a new contract with ether. What is the syntax for this?
0
votes
1answer
60 views

Is the Ethereum blockchain a list/chain of transactions or a list of contracts?

Ethereum newbie here with some general programming knowledge including basic Solidity. Below is my current mental picture of how Ehtereum works (please correct me if wrong). A contract is a class (in ...
1
vote
1answer
1k views

Getting this message in mist: Couldn't estimate gas, resorting to default parameters. Transaction is likely cheaper than the estimate

What is this error message in red: Couldn't estimate gas, resorting to default parameters. Transaction is likely cheaper than the estimate I have written a smart contract: pragma solidity ^0.4....
2
votes
1answer
638 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
1answer
85 views

Is there a better way to implement search functionality?

Take the following code for example: pragma solidity ^0.4.23; import "./MyContract.sol"; contract MyFactory { address[] public myContracts; function createContract(string ...
0
votes
1answer
181 views

How can I access a contract deployed by another (deployed) contract?

I am currently working on voting contracts modeled after a particular electoral system. My intention is to first deploy the MasterConstituency contract manually and to have that contract deploy ...
1
vote
0answers
84 views

Why transaction hash isn't available inside solidity function call

I recently bumped into this Is it possible to get the transaction hash from within a Solidity function call? while I was looking for a way to save the transaction hash inside my contract. And ...
1
vote
2answers
328 views

Can't deploy to a private chain using Truffle

I created a private Parity chain using the official tutorial (https://wiki.parity.io/Demo-PoA-tutorial). Then I set it in my Truffle config: module.exports = { networks: { private: { host:...
0
votes
0answers
34 views

Solving forwarding issue in smart-contract deployment

I've tried to create a smart-contract that automatically forwards incoming transaction to parent address. The issue there is gas amount since I've failed to create a function that pays for gas from ...
0
votes
1answer
69 views

Is it good approach to interact with smart contract using c# library instead of Web3-js?

I'm learning Ethereum, and having web application development experience mostly with Microsoft Technologies such as ASP.NET MVC and WebAPI. I've learned Solidity recently!. After reading about ...
0
votes
1answer
152 views

Smart contract verification

I want to create a token using smart contract. Before deploying it on the blockchain, do I have to get the smart contract verified from the third party or can I directly deploy the contract?
1
vote
1answer
97 views

Deployment of DAPP smart Contract on Ethereum MainNet

We are developing a DAPP based on ethereum. Current we are developing based on testrpc and its working perfectly. We do want to decide on where to deploy DAPP. Can we deploy on public Ethereum ...