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

When does a Smart contract get executed/called

I'm fairly new to Ethereum and Smart Contracts. After i publish a Smart Contract on the Chain, on what ways or how will it be executed? Who can call my Smart Contract? And under what conditions? I'm ...
1
vote
1answer
37 views

General question about totalSupply: fixed since first moment (aka Bitcoin) or indefinite (aka Ethereum)?

In an answer to a general question about totalSupply, I gave some rough indication about the aim of token deployer vs totalSupply: Why is the totalSupply of this token statically initialized to ...
1
vote
2answers
82 views

What is the main use of approveAndCall() function and _extraData?

function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); if(!...
0
votes
1answer
85 views

Why is the totalSupply of this token statically initialized to 5500000000?

contract UnixERC20 is StandardToken { function() { throw; } string public name; uint8 public decimals; string public symbol; string public version = 'H1.0'; ...
0
votes
3answers
233 views

Contract methods calls return empty array

I'm quite stuck with this issue. It seems like it must work, but it doesn't :D Have a contract on rinkeby network which is working perfectly through remix(load by address) and truffle console. ...
0
votes
1answer
54 views

Error while deploying smart contract- This contract does not implement all functions and thus cannot be created

I have written and complied a smart contract written in Solidity for token and crowdsale. Compilation was successful with no errors in Remix IDE. Here is my smart contract pragma solidity ^0.4.25; ...
1
vote
1answer
180 views

Infura not broadcasting contract deployment transaction

I am attempting to deploy a contract via an Infura node, and I am the point where a txhash is generated from the sendSignedTransaction() web3 function. However, after the txhash is generated nothing ...
0
votes
1answer
293 views

ethers.js ContractFactory not deploying

After following the ethersjs 4.0 documentation I am not able to deploy a contract. When running browserify I get an "Unexpected Token" error message at the line let contract = await factory.deploy("...
1
vote
3answers
71 views

Understand a smart contract semantics

I am writing to understand a smart contract which seems quite "meaningless" to me. The contract is at (https://etherscan.io/address/0xd4fa166d5ffe8f78230fc05e6850881dc08b2da2#code) but indeed over ...
1
vote
1answer
102 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....
1
vote
1answer
171 views

Truffle Deploy gas limit exhausted

I kept on getting this error. 9/10 of my deployment will fail. But out of the sudden it will be success without any reason. I have checked the transaction receipt and indeed it had reaches the gas ...
1
vote
0answers
25 views

Is there a way for a smart contract to manage a codebase?

For example, could one set up a smart contract with governance protocols which could merge PR’s in a github repository? How might one govern open source via a smart contract? In a related vein, is ...
0
votes
1answer
164 views

remix ERC223: This contract does not implement all functions and thus cannot be created

I can't implement ERC223 contract. remix said " This contract does not implement all functions and thus cannot be created." please tell me what bad it is. pragma solidity ^0.4.25; library ...
1
vote
1answer
88 views

Recover Deployed Contract on Remix

I am working on the text, Mastering Ethereum and I deployed a contract and sent it test ether. However, for unrelated reasons I had to restart my browser, upon returning the only way I could continue ...
2
votes
1answer
41 views

What about calls you can do safely in constructor?

As a matter of fact, there is more than one discussion about what are the call you can safely do in the constructor. Someone thinks “avoid all external call”, some other says “avoid to use ‘this’ or ...
3
votes
0answers
67 views

Why two contracts got same address?

I've been testing payments for shopping cart on a private chain. I create and deploy contracts to disburse payments among sellers. So if a shopper buys same items again the contracts for two carts ...
1
vote
1answer
19 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/...
1
vote
1answer
130 views

Deploy smart contract on Ropsten using truffle-hdwallet-provider

I have 7 smart contracts to deploy on the Ropsten network. I am using truffle-hdwallet-provider and below is the content of my truffle.js file: module.exports = { solc: { optimizer: { ...
1
vote
1answer
401 views

Estimate Gas For Smart Contract Always Fails

I have deployed a very simple contract to the Ethereum blockchain to be able to split a payment across two different outputs. pragma solidity ^0.5.0; contract MoonTrade { function multiSendETH( ...
2
votes
2answers
500 views

How can I trigger a quorum private smart contract deployment from my js client app?

My question follows directly this answer to a similar question. I need for my client app users to be able to trigger private contract deployment. I've tried using privateFor with both the web3 and ...
0
votes
1answer
113 views

Using Coinbase ETH Wallet to save contracts/send transactions with web3

I am working on a node app where I am using web3, Infura & truffle-hdwallet-provider & a new MetaMask wallet. This process appears to work & I can successfully deploy contracts! I want to ...
0
votes
1answer
54 views

Deploying custom bytecode on the blockchain

Say I have custom bytecode which I want to deploy to the blockchain, for example, 0x6009 (PUSH1 0x09) and I want to create a contract which executes exactly that bytecode when called. As far as I ...
3
votes
4answers
451 views

Must a Solidity developer know the private keys to the wallet that is tied to a token contract?

To deploy a token contract, there must be a wallet address, am I right? Thus, must the coder be managing the wallet (with its private keys) that is used? I'm looking at the scenario where what if ...
3
votes
1answer
245 views

Deploying a smart contract from EVM Bytecode via rpc calls

I am currently trying to deploy a smart contract with bytecode in a private Ethereum chain, using the "dev" chain of the parity client. For this, I compiled the following contract: pragma solidity ^...
1
vote
1answer
98 views

Data persistence in ethereum smart contract across deployments

I have developed a SmartContract using ethereum which has an internal struct to store some of the privilege mapping. I find that whenever there is any change in the smart contract and the deployment ...
-2
votes
1answer
159 views

What other function calls can freeze a smart contract like the pause() function?

I'm learning to audit Ethereum smart contract code for clues if a smart contract can be frozen or not. Many smart contract creators claim their contracts are "unstoppable", but I'd like to know if ...
0
votes
1answer
26 views

Why I can't deploy a smart contract to a specific public key if i just generated and own this publickey/private key?

I am writing an explorative article about the actors/assets model for Ethereum 2.0 (https://ethresear.ch/t/ethereum-2-0-data-model-actors-and-assets/4117). Are there some reasons why is it not ...
0
votes
1answer
49 views

Deploying contract via Remix costs less gas than deploying via javascript

When I launch my contract via remix, it launches with no issues. When I try to launch the contract via my javascript web3, using the same gas price and gas limit, it fails b/c it ran out of gas. This ...
0
votes
2answers
257 views

Deploy multiple instances of same contract

I am developing a decentralised notary app, using truffle/web3/react. It need to deploy multiple instances of a same contract. I managed to deploy multiple instances of a contract, MyContract via a ...
1
vote
1answer
82 views

Convert contract creation code to contract source code

I already get the bytecode of a contract from web3 through this method: web3.eth.getCode(address), but I am having trouble decoding this code to a human readable form. How do I do it? Take the OMG ...
0
votes
1answer
28 views

Power of signing transactions and what you can do with that

I have been playing around with state channels and am starting to see the power of signing information/transactions, but haven't got a completely clear idea of what I can do with them. I think I can ...
0
votes
1answer
190 views

Deploy contract using another contract

I've seen some example's, where the contract deploys other contract (e.g. this one), but is it possible to do so using binary of the contract? something like: function deployContract(bytes ...
1
vote
1answer
196 views

Deploy contract as Authority in Parity PoA private chain

I deployed a Proof of Authority chain with 2 nodes, but when I try to deploy a contract with one authority account, it says that there is unsufficient fund in the account. I though PoA didn't rely on ...
2
votes
0answers
64 views

Why is putting data to storage more expensive during the deployment of contract than storing the same data by a method?

I am working with truffle and solidity (v0.4.23) and found out that when I pass in an argument of constructor some bigger amount of data (16kB) that are saved to storage of a smart contract, it is ...
0
votes
1answer
39 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 ...
-1
votes
1answer
33 views

Understand inter-operation between typical DApp and its underlying smart contracts

I am a newbie to Ethereum and start to study some typical implementations of commonly-used DApp. So basically for the popular dapp on this list (https://www.stateofthedapps.com/rankings/platform/...
0
votes
2answers
411 views

Getting error while deploying with web3 version 1 using async wait

I am trying to deploy my code to Infura network i compiled and i got no errors but now when i am trying to deploy i am getting error const HDWalletProvider = require('truffle-hdwallet-provider'); ...
0
votes
1answer
72 views

Deploying fails with different compile version

I'm trying to implement a simple card game. Actually, everything is working fine. Until I tried to move from 0.4.0 to 0.4.22. Any idea what is going wrong? Thanks a lot. And here the code: pragma ...
1
vote
1answer
187 views

Testing deployed contract on Truffle

I'm having trouble testing a contract using truffle. I have the latest version of truffle installed as well a TestRPC. It's to my understanding that the latest version of truffle comes with a ...
1
vote
3answers
1k views

Estimate Gas Price (not Gas) using Web3

Using Web3, we are able to estimate the amount of gas needed for a transaction let estimatedGas = web3.eth.estimateGas({ to: "0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe", data: "...
1
vote
1answer
89 views

How to deploy smart contract with visible source code (etherscan)?

I'm trying to deploy a contract to the rinkeby (hope that thats the network to use for beta testing). Deploying worked with the command truffle migrate --reset -f 2 --network rinkeby. Unfortunately,...
0
votes
1answer
21 views

What do I put in the “ifSuccessfulSendTo” field in a crowdsale contract

Here is the code: pragma solidity ^0.4.18; interface token { function transfer(address receiver, uint amount) external; } contract Crowdsale { address public beneficiary; uint public ...
1
vote
1answer
21 views

Do I need to deploy token and crowdsale contracts from different accounts in MetaMask?

Do I need to deploy token and crowdsale contracts from different accounts in MetaMask and do I need a third account to send proceeds to if successful?
1
vote
1answer
54 views

Deployed Smart contract methods are not updating the value when restart the geth instance.Why?

Started Geth using following command geth --identity "testpvtnode" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir <pvtnetdatapath> --port "30303" --rpcapi db,eth,net,web3,personal --...
1
vote
0answers
163 views

How to get around EIP-170?

I'm coding a contract that grew so much it is sizing bigger than the limit on EIP-170. I already replaced everything I could on inheritance and instanciation of other contracts with interfaces in the ...
3
votes
2answers
247 views

How should I store mainnet truffle artifacts?

Obviously, I shouldn't upload my private key or personal infura credentials to my repo, but I was wondering what was the best way to track main net truffle artifacts. Generally speaking, for test ...
0
votes
1answer
74 views

How to interface with a deployed Ethereum smart contract?

I want to create an interface to interact with my smart contract. I have got an example from the following link. Counter Before implementing my contract, I have tried to use the given example.But it ...
1
vote
1answer
301 views

How to view and access the smart contract deployed by some other node in the Private Network?

If First node in the private blockchain deploys the contract and second node in the network wants to request data from that contract, then how the second node will send request to the smart contract?
1
vote
0answers
147 views

Error in mist : exceed block gas limit

I am trying to deploy a smart contract in private network using mist, but when I deploy my contract and provide transaction fee as 0.04 ether it throws error as exceeding block gas limit. Here is the ...
1
vote
1answer
34 views

How to i display information from a smart contract on my wordpress website [closed]

I want to display specific information from a smart contract on the main ether network on a wordpress website i can't seem to be able to do that, all tutorials only show test networks. the smart ...