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
0answers
153 views

Gas estimation error in functions with external calls

My front + smart contract is working on localhost. Now, I deployed at Rinkeby and all functions that has external calls are not working. Metamask says there will an exception even before the ...
1
vote
1answer
26 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). ...
1
vote
2answers
153 views

How to deploy complex Ethereum app split into multiple contracts

If you develop a complex dApp and have to split it into separate individual contracts because of the deployment gas limit, What's a clean process/pattern for deploying and linking the individual ...
2
votes
1answer
462 views

How to add website link to erc20 token on etherscan.io

How can we add this official site link to our deployed contract? Like in the image below: Here is my deployed contract address: https://etherscan.io/address/0xab73a739729a21b2299761408507556d2719af89#...
3
votes
2answers
47 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 ...
2
votes
2answers
166 views

How can we deploy smart contract, its front end and backend server based on Mongodb to Rinkeby [closed]

I have designed a dapp (based on nodeJS and Mongodb) which uses IPFS, Oraclize, a front end and off chain Mongodb server (based on mLab). Till now I was using Ganache for all local testing and ...
0
votes
1answer
22 views

Does an Ethereum contract address hold two different kinds of files, one for the contract bytecode and another for the ABI?

Does an Ethereum contract address hold two different kinds of file, one for the contract bytecode and another for the ABI?
1
vote
1answer
24 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
458 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
342 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
244 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
26 views

How parameters encoded?

I have a function in smart contract: function ERC20Token(uint256 _initialAmount, string _tokenName, uint8 _decimalUnits) I am using web3j to encode the function with params (100, "KToken", 100) and ...
0
votes
0answers
170 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
29 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
48 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
77 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
411 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
91 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
54 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 ...
1
vote
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; ...
0
votes
0answers
153 views

Remix IDE: Pass address as parameter / argument - difference double quote with and without

It seem's like Remix let's me deploy with parameter 0x2140eFD7Ba31169c69dfff6CDC66C542f0211824 but also with "0x2140eFD7Ba31169c69dfff6CDC66C542f0211824" Where is the difference using the double ...
0
votes
1answer
113 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
20 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
114 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
63 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
43 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
98 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
180 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
226 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
61 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
364 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
131 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
983 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
503 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
58 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
103 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
74 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
377 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
242 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
75 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
215 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
43 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
102 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
295 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
948 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
585 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
309 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
57 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....