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

Account used to Deploy not same as account associated with contract

So I am testing out a new contract I have been working on in Remix. I expected that the Account I selected would be the one associated with the actual contract, but it is not. In fact, I tried it a ...
3
votes
1answer
49 views

Deploying smart contract through Truffle

I want to know when deploying smart contract using truffle, is there a way to do that without using the migration files? I won't be requiring the Migration features.
1
vote
1answer
80 views

Copy state from one contract to another

I am experimenting with the zeppelin os upgradeable contracts but what I only need for my contract is to keep one specific state array when I deploy to another address. Avoiding proxy issues, upgrade ...
2
votes
1answer
174 views

call other contract's external function , the error: The contract code couldn't be stored, please check your gas amount

when I deploy a contract, the truffle frame told me this error :“The contract code couldn't be stored, please check your gas amount”。 the solidity code is: 1) Base.sol pragma solidity ^0.4.22; ...
2
votes
2answers
600 views

Make Truffle deploy a contract and pass it as an argument to another contract's constructor

I have two contracts, contractA & contractB. I want Truffle to first deploy contractA, then pass it as an argument to contractB's constructor. This is what I am currently trying, but contractB ...
1
vote
1answer
19 views

questions regarding how many bytes each type is

I have questions about how many bytes each type might be. Question 1) now() timestamp. i think it's uint which means uint256 which means 32 bytes? Am I right? Question 2) what does bytes32 mean? ...
0
votes
2answers
71 views

Extending Issued ERC 20 Token

I have already issued my ERC 20 token. But I want to add a time locking functionality to the token so the tokens issued during pre-sale / ICO will be time locked in user's wallets. Is this possible?
1
vote
1answer
95 views

Running out of gas when deploying contract in Ropsten Testnet

I am trying to create a Fomo3d clone contract in Ropsten testnet for debugging purpose. Here is the code: https://etherscan.io/address/0xa62142888aba8370742be823c1782d17a0389da1#code But I am ...
1
vote
2answers
173 views

Publishing contracts with libraries using web3.py

Im trying to publish contracts with libraries in them and im getting the below issue. Contracts without libraries publish just fine. Can someone who might have faced this issue before advise what the ...
1
vote
0answers
81 views

Unable to deploy contract due to extremely high gas estimate

I'm getting issues with the following contract for no obvious reason (I'm banging my head over this problem last 8 hours), I'm getting: Gas estimation errored with the following message (see below). ...
2
votes
1answer
166 views

Question about require keyword in solidity

Question 1) Let's imagine I have this code require(userVotes[msg.sender] == 0); presidents[_id-1].voteCount++; userVotes[msg.sender] = _id; so If I make a call to this function, and it doesn't pass ...
1
vote
1answer
31 views

mapping for msg.sender doesn't seem to work

state Variable is this : mapping(address=>uint) public userVotes; now i have a function : function votePresident(uint _id) external { presidents[_id-1].voteCount++; userVotes[msg....
1
vote
1answer
393 views

How to solve Error: Invalid JSON RPC response on DigitalOcean

I have deployed my dapp front end and backend on Digital Ocean. On running the server.js I am getting below error (node:30490) UnhandledPromiseRejectionWarning: Error: Invalid JSON RPC response: "" ...
1
vote
1answer
31 views

why doesn't it take any gas when making public view function but still writing in storage?

I have four questions. I hope you can help me. Good idea questions, maybe this will help others. Thanks in advance. Question 1) I know that if you don't write anything to storage, then That function ...
1
vote
1answer
253 views

does it cost gas when executing view or pure function in solidity?

Let's suppose i have the following code in ethereum's solidity function: function getArray() external pure returns(uint[]) { // Instantiate a new array in memory with a length of 3 uint[] memory ...
1
vote
1answer
90 views

Why does adding a string state variable cause out of gas error?

So when I try to add two (or even just the one) state string variables to the Boostr contract (title & description) I get the following error There was a problem deploying the contract: Error: ...
1
vote
1answer
23 views

ethereum smart contract code question

pragma solidity ^0.4.24; contract MemoryAndStorage { mapping(uint => User) users; struct User{ uint id; uint balance; } function addUser(uint id, uint balance) ...
1
vote
1answer
114 views

What value to set for Web3 provider when dapp is deployed to Heroku or other Hosting site

I am trying to host my dapp on Heroku and smart contract on Rinkeby network. My dapp has a front end in node.js and jquery and an express backend server that I use to listen to solidity events and to '...
1
vote
0answers
158 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
27 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
159 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
474 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
169 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
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
487 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
359 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
255 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
178 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
49 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
78 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
454 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
56 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; ...
1
vote
1answer
119 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
123 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
66 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
45 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
190 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
229 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
380 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
132 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 ...