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

Load another deployed contract's public values

pragma solidity ^0.4.24; I'm trying to call another contract's functions to return values. I have the below which successfully returns a true/false _childAddress.call(bytes4(keccak256("...
1
vote
1answer
51 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
0answers
11 views

Does a verified deployer contract implies that it's child token contract is also verified upon creation? [duplicate]

Token address: https://etherscan.io/token/0x12b19d3e2ccc14da04fae33e63652ce469b3f2fd Contract address: https://etherscan.io/address/0x12b19d3e2ccc14da04fae33e63652ce469b3f2fd Deployer contract: ...
1
vote
1answer
2k views

How can I set owners in constructor when create contract

I have a contract, and I want set owners for my contract without using set address in code. Code of costructor contract: function StepanToken2 (address _ownerFirst, address _ownerSecond){ ...
4
votes
1answer
208 views

Contract storage not changing on calling function

contract SimpleStorage { mapping(bytes32 => string) storedData; function set(bytes32 key, string value) { storedData[key] = value; } function get(bytes32 key) constant ...
0
votes
3answers
65 views

Solidity Compatibility Configuration

I am a cyber security analyst who is new to ethereum and working on a project to study crypto security. It's a series of 22 vulnerable smart contracts that you're supposed to exploit. For anyone who ...
18
votes
6answers
12k views

Encoding/Decoding contract ABI data

How to encode and decode ABI data? Can someone show me an example with web3js library?
1
vote
3answers
76 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 ...
0
votes
1answer
349 views

Deploying contract using byteCode

In that example you can see, how to deploy a new contract having just ABI and ByteCode (uses for copy and deploy contracts from mainnet to your testnet for example). /****** Deploying new contract ...
0
votes
0answers
34 views

Error while deploying smart contract ,BadFunctionCallOutput

The log i am having while deploying a smart contract: -------- load log data -------- user.address = 0x2154f8B602c470ae7F10f242DCC88Ae6221bb263 contract.address = ...
1
vote
1answer
441 views

Deploying multiple contracts

Let's assume I have multiple contracts defined, say 1 lib, 1 interface, A contract and B contract and B is A and finally, B uses both, the lib and the interface specified. The question is, should I ...
5
votes
3answers
2k views

Deploying a contract with Web3.js

I am trying to deploy a contract as explained in this section on Web3.js docs. As I understand it, I need to do the following: Create a new contract via web3.eth.Contract Take the returned-object ...
1
vote
0answers
142 views

Etherscan verification bytecodes don't match

Hi I'm trying to verify a token deployed at 0x87ab739464881af0011052d4ca0b0d657e8c3b48 in tx 0xbaa8f3fe86a35d2e0b7ed16b24782743e7dfb1eb21cfbb12253d0a50ef2ff365. (Mainnet) I compiled and deployed it ...
0
votes
0answers
50 views

Is Geth v1.8.27 incompatible with Solidity 0.5.0?

I set up a private chain using geth v1.8.27, then deployed an erc20 contract in solidity 0.5.0 complied using the 0.5.7+commit.6da8b019 version of compiler. After the transaction was mined, I tried to ...
0
votes
0answers
57 views

Geth - blockchain remains on genesis block, miner node doesn't mine

When attempting setup a local private PoW blockchain, an issue is arising where instead of mining new blocks, Geth instead hangs on the first attempt to 'commit new mining work'. Between the two geth ...
0
votes
0answers
25 views

Can't Connect Metamask to Ballot Dapp?

I want to connect Ballot Dapp to Metamask but it Shows "rpc error with payload" and "ALERT: Trying to call a function on a non-contract address".
0
votes
1answer
23 views

How do providers work?

Provider creates a link between me and a node in the mainnet/testnet, right? What will happen if say, one or more nodes of infura for example goes down. My app would still like to use that node but it ...
1
vote
2answers
34 views

Predefine set of transactions to be added as soon as a private chain is initialised

I need some transactions with predefined data that needs to be added immediately after the genesis block. Apart from actually making those transactions through Geth, is there a way to automate these ...
4
votes
0answers
688 views

Truffle migrate Error Invalid number of arguments to Solidity function

Truffle 4.0.1 I've got a contract declared "is Pausable" (OpenZeppelin framework) and I want to pause it as part of the deployment logic. I'm getting an error, however, when invoking pause() Error: ...
1
vote
1answer
156 views

Timeout exceeded during the transaction confirmation process. Be aware the transaction could still get confirmed

contract deploy , web3 version is 1.0.0-beta.52. let {bytecode, interface} = require('./1-compile') let Web3 = require('web3') let web3 = new Web3('http://localhost:7545') console.log('version :',...
0
votes
2answers
368 views

How to give opening and closing time for contract in remix

I have implemented a timed crowdsale contract and it's constructor is like this: function NeoCrowdsale(uint256 _openingTime, uint256 _closingTime) public { require(_openingTime >= now); ...
8
votes
2answers
5k views

How to get the contract ABI in new Remix IDE?

Waked up today just to find out the remix browser interface changed to this what happened !!? I cannot find the contract details to get the json interface anymore.
0
votes
1answer
27 views

How to remove byte code of deployed smart contract which was deployed using Ropsten Test Network?

I 've deployed my smart contract on Etherscan using Ropsten Test network. I can see there is bytecode for my deployed contract on ropsten etherscan. I want to hide or don't want to show the bytecode ...
0
votes
1answer
48 views

Create a large number of contracts with different addresses

I'm developing a performance test where I check the time a gateway spends to find a contract in a blockchain. I'm using ganache-cli to simulate the blockchain, my doubts are: 1) Is it possible to ...
0
votes
1answer
168 views

Is it possible to deploy a contract from python web3 if I have the ABI and bytecode from Remix?

Question says it all. I have a contract that I've written and compiled via Remix. I've dumped the ABI and Bytecode into local files, and I'm reading them into my python application. I'm following the ...
3
votes
1answer
947 views

ERC token not showing up in Etherscan.io search. Duplicate names exist

I created a token called LUV. There are other tokens with this name and they all show up in a search on etherscan.io but mine doesn't. The contract address is ...
0
votes
1answer
53 views

Deploy Contract Syntax Error

I am testing a contract, when I run the truffle migrate command, in my deplyment contract located in the migrations folder the following error appears: var HelloWorld=artifacts.require (“./HelloWorld....
3
votes
1answer
520 views

How can I deploy a smart contract via URL?

I want to deploy a smart contract via curl and send parameters in the constructor, I found this example but he does not send parameters, thankyou!!
0
votes
1answer
138 views

ERC721-OpenZeppelin: This contract does not implement all functions and thus cannot be created

I know there are already a lot of topics that deal with the problem but their solutions didn't work for me. this is the code: pragma solidity ^0.5.2; import "https://github.com/OpenZeppelin/...
1
vote
2answers
599 views

deploying contracts on private node taking forever

I am trying to deploy contracts on a private geth node. I have mined enough that I have the account balance and the DAG was created. Here is the netstats for the node : Now, the contracts start ...
0
votes
0answers
15 views

Can ganache serve at a directory in addition to a port?

Using the ganache command line interface I can set a seed and a port: ganache-cli --seed 2048 --port 2020 Which serves to Listening on 127.0.0.1:2020 Can I get it to serve to a directory of my ...
8
votes
4answers
5k views

The contract code couldn't be stored, please check your gas amount

I know this issue was discussed before several times, but I cant get the solution to my problem from any of the answers, My contract got deployed fine before adding the following function, function ...
2
votes
3answers
447 views

Is there a way to test already deployed solidity contracts with truffle?

Lets say I have many contracts that are already deployed and I don't want to re-deploy them (using testrpc), can I still test them with truffle?
2
votes
1answer
39 views

Contract and the transaction that creates the contract

Are those different? Blockchain is a list of transactions bundled into blocks. Thus, it is clear that all transactions are recorded in the blockchain. But then where are the contracts stored?
0
votes
1answer
40 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 ...
0
votes
1answer
29 views

How truffle share (is it?) the addresses of the previously deployed contracts between migrations files?

We have 2 migrations files (2,3) and in 2 we are deploying singletons contracts which later be used in the contracts we deploy on migrations file number 3. How Truffle pass the address of the ...
0
votes
1answer
213 views

creation of SmartBillions errored: transaction execution failed [closed]

I am trying to deploy smartBillions contract on remix for learning purposes. And following error is persisted creation of SmartBillions errored: transaction execution failed Following is the code ...
1
vote
2answers
33 views

How to deal with smart contract Versioning

I just got hit by a problem regarding the changes in a smart contract in case of a business use case. Changing the smart contract in general means, " in business terms", loosing the data and starting ...
0
votes
0answers
11 views

Ethereum wallet not deploying token

I have finished coding my token with the Ethereum wallet, I went through the code and it is all correct, as I am getting no error. However, the contract is not the deploying. Instead the ethereum ...
0
votes
1answer
21 views

Fetching a snapshot of all the contracts accessible on Etherscan

I am trying to collect a large set of online contracts and came across the following statement in a research article: Does anyone know how to access such a "snapshot of 25983 contracts"? Is it ...
1
vote
2answers
46 views

find out network using contract address

I know that in Ethereum, same addresses works across the network(mainnet and all testnets). But I am looking to know if there are any chances to find out the network on which a contract is deployed ...
2
votes
1answer
43 views

How can you deploy a contract using the non-interactive mode?

I have a contract written in remix, but I am trying to deploy it using Geth's non-interactive mode using geth attach ipc:<path> -exec "<contract deploy info>". When I am in interactive ...
0
votes
1answer
144 views

TypeError: Member “owner” not found or not visible after argument-dependent lookup in uint256

I am very new to solidity programming, I have issue while running one solidity smart contract. pragma solidity >= 0.4 .22 < 0.6 .0; contract DocumentManager { mapping(uint => Document) ...
0
votes
0answers
35 views

ETH send to contract fails, probably fallback() function fails to call

I deployed the following piece of contract on testnet and everything works fine.But, when I send test ETH for the contract address, transaction fails. I tried with higher gas as well but failed as ...
1
vote
2answers
3k views

What does “0x0 Transaction mined but execution failed” mean when attempting to deploy via Remix on Rinkeby?

I am attempting to deploy a test contract on Rinkeby using Remix IDE and the MetaMask extension in chrome. However when I try to execute the contract I receive this message in the status section: "0x0 ...
8
votes
2answers
368 views

When a smart contract is deployed, is its source code publicly viewable?

When a smart contract is deployed to the blockchain, is the source code then publicly viewable to all participants? For example, what you see here in Etherchain. I am aware that there are some ...
1
vote
2answers
585 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, ...
0
votes
0answers
46 views

How to flush token to another contract from token holder's token balance from ERC-20 contract?

I have to implement the following scenario: - One ERC-20 token contract. - Another contract which will flush tokens of ERC-20 tokens. - Add these tokens to one, defined Admin address. Note: All ...
1
vote
2answers
40 views

Pricing when creating a contract from another contract

Say, I am creating a contract from another contract's function. AND I want to transfer certain amount (1 ether) to be added to contract's balance after it is created. Will this 1 ether and gas price ...
3
votes
2answers
283 views

Can we do ethereum transaction for free on private blockchain

I am very new to ethereum Blockchain. Please give some suggestion regarding one query regarding gas fee. Can we do ethereum transaction and smart contract deployment for free on private blockchain ...

1 3 4 5 6 7 20