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

Remix Deploy Error encoding arguments

I'm building a simple fund raising smart contract and having problems deploying this through Remix. I'm wanting to set the "goal" and "minimum contribution" values (in wei) during the contract ...
0
votes
1answer
15 views

Is it possible to deploy the ERC721 token on private network for free?

I created a private network with 3 instances (one controller, 2 nodes) based on PoA on AWS. And I checked if my custom ERC721token is deployable by using Ropspan test network. so I have a working-...
0
votes
2answers
25 views

gas required exceeds allowance when deploying ERC721token

I am trying to deploy Smart-contract(ERC721) on my private ethereum network. But I have this issue. Here is my genesis. { "config": { "chainId": 3333, "homesteadBlock": 1, ...
2
votes
1answer
22 views

TypeError: Indexed expression has to be a type, mapping or array (is function (address) view external returns (string memory,string memory…)

I have 2 contracts first one is sub second one is main . First i deploy main and create a new subtoken. Then I want to access my maincontract in subToken contract but I cant :( When I compile this ...
0
votes
1answer
22 views

Why does etherscan show such unusual results for the creation of this specific contract?

Normally, when I browse for the address of a specific contract and then click the contract-creation transaction label, I get: To: [Contract 0x... Created] For example, consider the BNB contract at ...
1
vote
1answer
27 views

How to construct deployable bytecode from runtime bytecode?

For example I want to redeploy/clone a contract to another address but don't have the original source code, so I only have the runtime bytecode stored on the blockchain. If I try to deploy the runtime ...
0
votes
1answer
24 views

How to unlock account to deploy contract without using personal.unlockAccount()?

When I have account keystore file on geth node http://192.168.43.201:8545 , I can deploy a contract like below: const web3 = new Web3('http://192.168.43.201:8545'); ... const contract = new web3.eth....
0
votes
1answer
33 views

Contract not deploying on private network

I have a smart contract a little bit like this: pragma solidity ^0.5.10; contract sc { struct element { uint96 firstKey; uint96 secondKey; bytes32 firstData; ...
0
votes
1answer
16 views

token tracker not found in ropsten

Generate a token called ye22, and deploy it in the ropsten test block, the contract is generated, the tokens are sent to an owner, but this token is not visible in ropsten, only the contract This is ...
-3
votes
2answers
38 views

Trying to create an instance of an abstract contract

pragma solidity ^0.5.0; import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol'; contract SubToken{ mapping(address => uint) balances; ...
0
votes
2answers
31 views

what is the transferfrom event signature?

I am currently writing a code that list all types of transactions in a given contract . my plan is to just check for all logs whether the topics[0] == an event signature of a function. and now i am ...
0
votes
1answer
34 views

Web3 0.20 contract deployment

environment: Web3 0.20.7,Infura,node.js(backend) Deploy contract with Web3 0.20.7 pragma solidity ^0.5.1; contract Bang{ address holder; address proxy; constructor (address _holder, ...
2
votes
0answers
27 views

deploying Solidity contract in Remix

I am trying to deploy Solidity contract in Remix for my study purpose. However, I failed to deploy SmartMesh contract in Remix (below, I attach the link for the code): https://etherscan.io/address/...
0
votes
1answer
32 views

Deploy contract didnt resolve the promise

im facing a problem deploying a simple smart contract. When i use ganacha-cli, the program enter in a loop of confimation event, counting from 1. Thats the first problem. Output: Account: ...
0
votes
1answer
18 views

Smart Contract Deployment issue

I am making a smart contract with a Transfer function. function transfer(address _to, uint256 _value) public returns(bool success) { //checking whether sender has enough number of tokens ...
1
vote
1answer
32 views

How to get transaction status (programatically, not etherscan)?

I have a problem when I interact with an Smart Contract, from a javascript webapp. I can execute the transaction correctly when the status is confirmed, but I cannot get any error response when it ...
0
votes
1answer
34 views

Error: Invalid JSON RPC response | ropsten.infura

I'm trying to deploy my contracts to the ropsten test network, but I get this error. the message error : C:\Users\acer\test>truffle migrate --reset --network ropsten Using network 'ropsten'. ...
1
vote
1answer
34 views

truffle migrate --network kovan issue

When I run truffle migrate --network kovan in the terminal the contract deployment doesn't run. Just: Compiling your contracts...==================== >Eveything is up to date, there is nothing to ...
1
vote
0answers
20 views

estimateGas works on Truffle, but fails on geth

I'm trying to estimate the gas required for deploying a smart contract. It works fine in Truffle, but fails in Geth for some weird reason: truffle(develop)> await web3.eth.estimateGas({ data: '...
0
votes
0answers
52 views

Error: types/values length mismatch

I'm following an Ethereum Dapp tutorial in Udemy. I seem to stumble upon an error somewhere early in the course. I was about to deploy my beginner's contract and test it with Mocha when the problem ...
1
vote
3answers
216 views

Pattern to deploy a smart contract from another one without spending twice the gas

It seems that if we want to deploy a smart contract (let's call it Target) from another one (let's call it Deployer) in Solidity via new, we spend a gas amount linear in the size of the deployed ...
0
votes
1answer
38 views

How to deploy a smart contract to actual ethereum network instead of Truffle or Ganache?

I am building a react application using web3 to interface with Ethereum. At a bare minimum, it needs to create a contract, deploy said contract, store a value (i.e. a string: "test"), then later ...
0
votes
1answer
30 views

How risky is it to ask a dev to deploy smartcontract for you?

I’m currently in the process of hiring a dev to develop my token and my smartcontract and deploy it. Will he need my ETH private key to do it ? Can he change the destination of the funds once the ...
0
votes
0answers
58 views

Truffle Contract deployment >> Error: Returned values aren't valid, did it run Out of Gas?

I have a rpc enabled running private ethereum blockchain node with mining enabled. I have connected to it using metamask and have performed some contract interactions (deployment, calling functions,...
0
votes
0answers
18 views

Steps of Uploading of smart contract on the main Ethereum Network

The following link discusses about deploying of smart contract [How To: Deploy Smart Contracts Onto The Ethereum Blockchain1 But it does not say how much it would cost to upload the contract on ...
2
votes
1answer
21 views

Is Contract Deployment analogous to Object Instantiation?

Is deploying a contract analogous to instantiating a plaint old class in OOP and the address returned similar to the memory pointer of the OOP object? Should I be thinking of the ledge as memory to a ...
0
votes
1answer
82 views

Truffle error when deploy a contract

Does anybody know how to solve this? I've try to compile and deploy my contract to get the address, why obtained this error Error: 1_initial_migration.js ====================== Deploying '...
-1
votes
1answer
22 views

Truffle ganache error

I have this error~! Contract has not been deployed to detected network (network/artifact mismatch) Can you help me thank you!
0
votes
1answer
20 views

Sending an array of addresses and amount to be paid to a contract

I need to pay 50+ addresses each with different amounts of ether. Right now im doing it by looping through an array on my front end and calling the contract function each time with the address and its ...
2
votes
2answers
213 views

What's the difference between Truffle Migrations and ZeppelinOS upgradeable contracts?

It was my understanding that Truffle migrations will move updated contracts to new addresses. As a developer, you can use this feature to update already deployed contracts with new code. ZeppelinOS ...
0
votes
1answer
21 views

Is Smart Contract of any ERC20 token is always available publicly

Is Smart Contract of any ERC20 token is always available publicly. If not complete, then what things are generally available,(for eg, except some sensitive information) And, if not any of them are ...
1
vote
2answers
55 views

ERC721, Token name and symbol not shown in etherscan

I have created a simple token with ERC721, but etherscan not show my token name and symbol, why? this is my contract I deploy with this code Result on etherscan No token name and symbol showed, is ...
0
votes
2answers
45 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
19 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
68 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 ...
2
votes
1answer
50 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
2answers
28 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
37 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
58 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
36 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
2answers
37 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
38 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
1answer
64 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
21 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
49 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
18 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
98 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: ...
0
votes
3answers
46 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
100 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 ...