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

Remix - Contract creation initialization returns data with length of more than 24576 bytes. The deployment will likely fails). What can be done?

I get the following error when deploying my contract in Remix: Contract creation initialization returns data with length of more than 24576 bytes. The deployment will likely fails. More info: eip-...
0
votes
1answer
63 views

Error: Returned error: VM Exception while processing transaction: revert

pragma solidity ^0.5.0; contract MultiSignatureWallet { uint constant public MAX_OWNER_COUNT = 2; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(...
1
vote
1answer
51 views

Zero knowledge contingent payment on etherum?

I know that bitcoin supports Zero knowledge contingent payment (ZKCP) , can etherum support such ZKCP Payment ?
1
vote
1answer
194 views

Importing in SOLC to deploy smart contract

I don't run an Ethereum framework like Truffle and I want to deploy a smart contract using infura node. The smart contract is very simple: pragma solidity ^0.5.2; import "http://github.com/...
0
votes
1answer
357 views

TypeError: Return argument type bytes32 is not implicitly convertible to expected type (type of first return variable)

I have one issue while deploying the below contract.could anyone help me to find the issue as unable to find issue. pragma solidity >=0.4.22 <0.6.0; contract Lottery { address payable[] ...
0
votes
1answer
416 views

Contract deployment using web3.eth.contract(abi) with constructor arguments

I'm trying to deploy the following smart contract: pragma solidity ^0.5.00; contract TestContract { address public owner; string public word; constructor(string memory _word) public{ ...
0
votes
2answers
32 views

Optimization Exception Remix Editor

I am trying to compile my solidity code in remix editor. I keep getting this error "Optimization exception during compilation". I was using solidity version 0.5.2 till day before yesterday. Now, It is ...
1
vote
2answers
52 views

How truffle selects the address with which it deploys a smart contract with and where does it gets it's private keys?

I am reading truffle tutorials for deployment smart contract to gauche, I've never deployed any smart contract to real network. Now when migrate (deploy) a smart contract I get these info: ...
0
votes
2answers
43 views

Can smart contract send tokens/eth if it doesn't have a send function?

Let's assume you just created 1,000 tokens at address 0x012345. You, the owner of 0x012345 sent by mistake all tokens and 1ETH to a smart contract with address 0x987654. This smart contract doesn't ...
1
vote
1answer
79 views

What does etherscan mean by “Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)”?

I'm inspecting a contract on etherscan, at the following URL: https://etherscan.io/address/0x5cb5f46a655c02889172323760d12d0e5d83cdaf#code At the bottom of the web-page, I see two sections: ...
1
vote
1answer
55 views

How can I retrieve the constructor arguments used during contract deployment

I know how to extract the constructor arguments out of the transaction object returned from a contract-deployment operation. It is explain in web3.js official documentation here. But this is not an ...
1
vote
0answers
41 views

`etherlime deploy` fails with Error: invalid sender

I am trying to deploy a contract with etherlime to a private permissioned Quorum network: etherlime init --> OK etherlime compile --> OK etherlime deploy --> Error Error: Compilation ...
2
votes
0answers
106 views

I want to use Ledger Nano S to deploy the contract, but not working

I wanted to deploy the contract with the Ledger Nano S wallet, but not working on truffle. I installed npm package 'truffle-ledger-provider' and followed the practice. But I got an error ...
1
vote
0answers
43 views

state channel between smart contracts

In my scenario, there are data sellers and data buyers which might be persons or organizations. I would like to create a smart contract for data seller and another smart contract for data buyer where ...
1
vote
1answer
156 views

Error that contract is not convertible to expected type address

In older solidity compilers this code snippet works. In newer compilers, I get an error. Can someone what I need to change so it works again? I get the following error message: "Type contract ...
0
votes
1answer
36 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
36 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
60 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
84 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
177 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
43 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
161 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
200 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
66 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
96 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
134 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 ...
1
vote
1answer
69 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
34 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
62 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
18 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
107 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
302 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
400 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
96 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
49 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
443 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 ...
2
votes
1answer
213 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
81 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
123 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
24 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
36 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
215 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
74 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
20 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
158 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
178 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
59 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
35 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
32 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/...