Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [contract-deployment]

The act of pushing a compiled smart contract in byte code to the Ethereum blockchain.

0
votes
2answers
27 views

Instantiating a contract inside another contract on behalf of some address

I want to initialise an instance of a contract inside another contract on behalf of some address. e.g. I have contracts A and B contract A{ address owner; constructor() public{ ...
0
votes
1answer
15 views

Problem understanding the owner assignment

Suppose I have 3 contracts, namely Owner, B and C: contract Owned { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner { require(...
0
votes
1answer
21 views

Sending a transaction without using MetaMask

I have designed a contract deployed on the Rinkeby with web3. I have also implemented a react app to interact with the blockchain. I want to use my application without metamask but I got this error ...
1
vote
1answer
29 views

How to find the Bytecode of Ethereum Smart Contract by just it's address using JSON RPC

I am wondering that is there any way to find the byte-code of the Smart Contract which is published on a blockchain just by having only idea about it's contract address using JSON RPC running at 8545 ...
1
vote
1answer
19 views

Is it possible to connect to public Ethereum like blockchain with Remix to deploy and view contracts?

I've tried to do so by specifying the web3 provider and the 8584 port but it gets stuck on every try. Is this possible? if so, is there another solution for that need?
1
vote
1answer
17 views

Issue Deploying Contract LinkedIn Course - Ethereum: Building Blockchain Decentralized Apps (DApps)

I'm completely new to Ethereum Smart Contracts. I'm following the course on LinkedIn [Ethereum: Building Blockchain Decentralized Apps (DApps)]. I've been able to compile the smart contract as per ...
1
vote
1answer
30 views

web3 - Contract deployment has been reverted by the EVM

I want to deploy a contract but my transaction gets reverted. This only happens with Web3, while it works fine with Remix.I can assure the ABI and Bytecode are correct because I pasted them from Remix,...
1
vote
1answer
23 views

Calling a smart contract function with an unsigned transaction

I'm new to working with Ethereum smart contracts and would appreciate some guidance by the community on a task that I'm trying to solve. This is the contract I want to use - https://github.com/chatch/...
1
vote
1answer
16 views

Set the price by calling another contract and getting result from it

I want to set the price in Token every time the contract is deployed by calling ETHUSD in constructor and getting result from it. pragma solidity ^0.5.0; import "./ETHUSD.sol"; contract Token { ...
0
votes
1answer
27 views

extract address of used library

Is there anyway or method to extract the address of a linked library from the contract bytecode (not a verified contract code) or deployment transaction? my question is about step 3: step 1. ...
1
vote
0answers
38 views

truffle deploy live | transaction not mined within 750 seconds

I'm trying to deploy my smart contract to the live ETH network. I've done the same process on rinkeby and it works fine. However during the block mining phase it times out and gives the error: " ...
0
votes
1answer
20 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("...
0
votes
1answer
17 views

Contract [Contract's name] not found on network ID: 5777

I am using truffle with drizzle. In the contract folder I provide a file that includes two contracts A that is a factory contract and B that is created through one of A's functions After compiling ...
0
votes
2answers
14 views

web3js returns non-checksumed addresses!

Why does web3js 0.20.6 returns all-lowercase addresses on contract creation not a checksumed address?! How to deal with this trouble?
1
vote
2answers
48 views

Can't deploy contract with web3.js and ganache-cli

I'm using the solc module to compile a Solidity contract. The compilation step looks to be working correctly, however, when I attempt to deploy the contract to the Ganache network (in a Mocha test), ...
1
vote
0answers
10 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
votes
0answers
25 views

Compiling Solidity contract I am getting Error

While executing this code (compiledCode = solc.compile(code)) in Command Prompt, I am getting '{"errors":[{"component":"general","formattedMessage":"* Line 1, Column 1\n Syntax error: value, ...
0
votes
3answers
35 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 ...
0
votes
1answer
36 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
1answer
30 views

Stop listening to / watching a contract (Web3)

Here is what I am trying to do (Web3 1.0): Deploy a contract Wait until Nth confirmation. Then stop getting updates from the contract. My code: var myContract = new web3.eth.Contract(_abi, ...
0
votes
0answers
14 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 = ...
0
votes
1answer
9 views

linking the CoreContract and the ERC20 token contract

What is the standard way of making the link between our CoreContract and the ERC20Token contract used by the Core Contract? Are people used to use inheritance like: MyCoreContract is MyERC20Contract { ...
1
vote
0answers
52 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
1answer
26 views

How to deploy A contract created by another contract in the browser?

Hey I am making a smart contract that create another smart contracts. Organization.sol create Session.sol . When I create a session using createdSession function I got it's address and I already had ...
0
votes
0answers
25 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
32 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
11 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
21 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
1answer
54 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 :',...
1
vote
1answer
45 views

Access deployed smart contract using web3.js

I am new to Etherium smart contracts. I have created a smart contract and deployed it on https://kovan.etherscan.io. Now I am trying to access this contract from node js. below is my code but I am not ...
1
vote
2answers
22 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 ...
0
votes
1answer
33 views

Is it possible to modify privateFor addreses in a private Smart Contract (Quorum)?

I know how a private smart contract works providing a list of accepted addreses to privateFor property, but what if I want to disable (or enable) any address visibility? Should I deploy a new Smart ...
0
votes
1answer
16 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 ...
1
vote
0answers
18 views

Contract deployment error using rinkeby/infura. Error encountered, bailing. Network state unknown. Review successful transactions manually

I try to deploy smart contracts using Infura to the rinkeby test network and got this error: Running migration: 1_initial_migration.js Deploying Migrations... ... ...
0
votes
1answer
32 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
20 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....
0
votes
1answer
56 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 ...
0
votes
0answers
13 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 ...
0
votes
1answer
29 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/...
0
votes
1answer
19 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
16 views

How do I share my Ethereum smart contract address to a third party for uploading data into my private blockchain

My smart contract address looks like this (altered): 0xb2dd088039f7b608b300e8fa14c2e0. Please advise if there is an Ethereum explorer in which private data can be shared by logging in through the ...
1
vote
2answers
29 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
1answer
30 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 ...
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
11 views

Corporate key store for storing private keys - Ethereum

Is there a device to store private keys of Ethereum in a corporate world? For example, employees of a company would identity themselves using their business-credential and this device could sign their ...
0
votes
1answer
16 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
35 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 ...
0
votes
1answer
14 views

Memory error while compiling

Please have a look at the contract pragma solidity ^0.5.1; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, ...
2
votes
1answer
33 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
41 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) ...