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

How to deploy dependent contracts on MainNet using geth?

Suppose I have a contract A that depends on a contract B and an interface I. contract B { ... } interface I { ... } contract A is B { I objectSample; ... } On a standard deployment where A ...
0
votes
1answer
218 views

Contract deployed in private blockchain not returning output

This is my smart contract: pragma solidity ^0.4.24; contract Greet { string message; constructor() public{ message="I'm ready!"; } function setgreetings(string _message)public { ...
0
votes
1answer
179 views

what should be the proper block gas limit? [duplicate]

I have created a private network and trying to deploy my contract using Remix IDE. Remix is connected to my private blockchain at port 8545, my coinbase account have 2 ethers and I have set my Gas ...
1
vote
2answers
369 views

Getting this error: “error ”oversized data"

When I am trying to deploy my smart contract(It is a 600+ lines smart contract)through truffle framework (version 4.1.14) on Rinkeby testnet it is showing the above error.But when I am deploying the ...
1
vote
1answer
211 views

How to deploy contract with bytecode from etherscan?

For example, I want to deploy a contract to my local testnet. But I only have its opcode from etherscan. How to deploy the contract with just those runtime bytecode?
0
votes
2answers
36 views

From where this Ether came from?

Let's have a look at this address on Etherscan: https://etherscan.io/address/0xfbe0aFcd7658BA86be41922059dD879C192D4c73 First transaction is a Smart Contract creation, that costs about 15 ETH. Can't ...
2
votes
1answer
193 views

How to find deployed transaction hash of any given contract in chain, with just “contract address” information?

Am trying to write small application which will be able to find Contract deployment transaction with only input parameter - contract address. The application should be able to search entire net.,i,e ...
1
vote
3answers
490 views

Remix is not connecting to my private network

I have initialized the genesis file then run that command in the console- geth --rpc --rpcaddr 0.0.0.0 --rpcport 8549 --rpccorsdomain "*" --rpcvhosts "*" --rpcapi "network,admin,personal" --...
2
votes
1answer
227 views

Geth Sync Problems | Rinkeby, Ropsten | Deploy contracts

Get Geth to sync --> Rinkeby test network. For the love of god I just want to deploy a contract. I have deployed it to Ganache-cli, GUI, remixIDE, deployed with truffle/Infuria.io...I keep failing to ...
1
vote
3answers
1k views

Promise pending while calling a function from contract using web3

I have deployed a contract for producing hash : Contract Hash { function sethash(string id)public pure returns(bytes32) { return(keccak256(id)); } } Now I am calling this function ...
1
vote
1answer
989 views

How to interact with smart contract using web3js?

I have deployed a contract in rinkeby network. Now I have the address of the contract and ABI of the contract. var contract = new web3.eth.Contract(ContractABI, 'ContractAddress') But now how ...
2
votes
0answers
49 views

Interacting with a complex deployed contract from my other contract

For example, I want to call a create market function from augur in my contract. I'm using the recommended pattern, but there are additional contracts that this function brings in, ex ICash, IMarket ...
4
votes
3answers
159 views

how do you sign transactions programatically?

imagine there's a dapp you're building and on your website users type the receiver address, the value and what you do is send from that user's address to the receiver's address the value ether. My ...
0
votes
2answers
33 views

This contract does not implement all functions and thus cannot be created. for myfirstcontract contract Bank is working [closed]

pragma solidity ^0.4.24; contract Bank { uint private value; function Bank(uint amount) { value = 10; } function deposit(uint amount) { value += amount; } ...
1
vote
0answers
382 views

how to get public key from metamask? [duplicate]

I'm creating a dapp. and I need my users on my website to provide public keys. As I am lazy to write a script which generates public/private keys automatically, I want to suggest an idea that they use ...
0
votes
1answer
69 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
50 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
85 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
186 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
646 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
73 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
106 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
183 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
82 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
181 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
412 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
33 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
274 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
96 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
118 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
163 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
28 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
165 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
498 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
50 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
174 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
554 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
392 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
279 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
182 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
33 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
50 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
79 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
489 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
97 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 ...