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

Cannot read property 'sendEth' of undefined, 'sendEth' is function in smart contract

Hi I'm trying to interact with an Ethereum smart contract but it is always showing "TypeError : Cannot read property 'sendEth' of undefined" where 'sendEth' is a function in my smart contract Here is ...
0
votes
1answer
20 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 ...
3
votes
1answer
467 views

Deploying on contract on main net - Error: insufficient funds for gas * price + value

Running geth v 1.7.3 truffle 4.0.5 truffle-config.js module.exports = { networks: { development: { host: "localhost", port: 8545, network_id: "*" // Match any network id ...
0
votes
1answer
21 views

How to remove 2 contracts

I have 2 contracts to be removed 0xc4ba2bbfc1d35d4a6dc37d7764081a1880e5a281 unable to verify source for some reason. 0xf3db7f7f6419bf537fd24eb530b6eace38850c0c contains 0 tokens. How do i do this? ...
1
vote
2answers
36 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
40 views
+100

Contract ERC20 creation “pending”

I have created a new ERC20 contract using this generator https://vittominacori.github.io/erc20-generator/ The status is "pending" , 21 hours at this time. Some explanation? Previously, I tried it ...
1
vote
1answer
40 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/...
2
votes
1answer
554 views

Error from sendSignedTransaction: Error: Returned error: replacement transaction underpriced

I am the beginner in Ethereum stuff need guidance please help I am running a private ethereum network and using mist wallet here is my contract code pragma solidity ^0.4.0; contract MyFirstContract ...
0
votes
1answer
17 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 ...
0
votes
2answers
52 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
439 views

Pass address[] array to Truffle deployer (MultisigWallet)

I am trying to deploy the MultisigWallet contract on testrpc. However, I can't figure out how to provide the address[] _owners constructor parameter in the deployment command. I've tried several ...
0
votes
1answer
40 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'. ...
0
votes
2answers
32 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, ...
6
votes
1answer
752 views

Deploy contract in web3j quorum problem

I'm trying to deploy a smart contract (7 nodes sample from Quorum) using web3j. It fails at get() to get the contract wrapper object. If I check the logs, a new transaction will show up, but if I call ...
0
votes
1answer
221 views

Block sealing failed err=“unauthorized signer”

i am trying to run geth environment on windows after i have successfully set it up on linux. When trying to deploy contract on geth like i did in linux it produces following error. loadScript('...
0
votes
1answer
18 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
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
1answer
403 views

How to deploy a contract using metamask and the callback?

I'm trying to deploy a new contract with metamask (in my javascript frontend app). The problem is that, when the receipt is returned, the address is "undefined" since, I suppose, the transaction is ...
2
votes
1answer
29 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 ...
1
vote
1answer
224 views

How to compile Solidity ^0.5.5 contract with Node.js?

I am terribly new in Solidity and now I try to learn how to compile a contract in Solidity ^0.5.5 (No versions below). I have the contract as follow (UsersContract.sol) pragma solidity ^0.5.5; ...
1
vote
3answers
56 views

Ownership isn't allocated in the contract?

I've taken the below contract as an example from a tutorial and changed items highlighted in bold, as per IDE errors. What the contract should do is allocate ownership of the item to the account that ...
0
votes
1answer
140 views

Truffle tries deploy from unknown account

I am trying to deploy a contract to Ropsten using Infura with the config file truffle.js below. The deploy fails because the account listed in the error message has insufficient funds – however I do ...
6
votes
1answer
1k views

Adding Wallet using web3.eth.accounts.wallet.add

On web3 0.20.1, I am using Infura to deploy a contract to Rinkeby. This probably requires me to add a wallet to web3.accounts to provide the gas needed. When I ran the following nodejs code, Web3 = ...
0
votes
1answer
24 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
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?
4
votes
1answer
492 views

Contract transaction couldn't be found after 50 blocks in Kovan

When deploying contracts on the ledger I faced with issue Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: Contract transaction couldn't be ...
0
votes
1answer
25 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....
1
vote
1answer
29 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
2answers
878 views

On mainnet Gas required exceeds allowance or always failing transaction

When I try to deploy contract, the error comes up: gas required exceeds allowance or always failing transaction on mainnet. contract Crowdsale { using SafeMath for uint256; // The token ...
0
votes
1answer
36 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; ...
1
vote
1answer
38 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 ...
2
votes
2answers
685 views

Constantly getting “Gas estimation failed” error when attempting to deploy ERC20 Token contract on Rinkeby testnet

I have included the code for the contract below. The error I get when attempting to deploy in remix via metamask is: Gas estimation errored with the following message (see below). The transaction ...
3
votes
3answers
2k views

Correctly deploying contracts with web3 1.0 and testrpc (invalid opcode error)

I followed the following tutorial: https://medium.com/@mvmurthy/full-stack-hello-world-voting-ethereum-dapp-tutorial-part-1-40d2d0d807c2 Now this tutorial is not using the recent version of web3 but ...
1
vote
1answer
21 views

Ethereum Contract Simplify

I'm confused about 'contracts' in Ethereum. When do I need a 'contract'? For the scope of my app: I want user to be able to generate ETH address, receive and send out ETHER and I should be able to ...
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/...
0
votes
1answer
38 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 ...
-3
votes
2answers
42 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
1answer
17 views

token tracker not found in ropsten [on hold]

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 ...
13
votes
4answers
757 views

Deploying a contract from a multisig wallet

I created a multisig wallet using Mist, but don't know how to deploy a contract from the wallet address. Is it even possible? If so, how to do this?
0
votes
1answer
26 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 ...
3
votes
2answers
725 views

Contract creation gas cost depends on code in library function?

I have a contract fooContract which is using a fooLib library, calling fooLib.foo(LibStruct storage param) The transaction cost to create fooContract seems to depend on the code in the fooLib.foo() ...
0
votes
2answers
67 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
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 ...
2
votes
1answer
146 views

How to find deployed transaction hash of any given contract in chain, with just “contract address” information?

Am trying to write small application which will be able to find Contract deployment transaction with only input parameter - contract address. The application should be able to search entire net.,i,e ...
0
votes
1answer
35 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
4answers
704 views

use web3js and infura deploy contract

const Web3 = require('web3'); const fs = require('fs'); const solc = require('solc'); let web3; if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { web3 = new ...
0
votes
1answer
135 views

web3.eth.getAccounts() never give any output

const deploy = async () => { **var acct = await web3.eth.getAccounts();** console.log("ac", acct); } deploy(); even the console is not getting printed,what could be the reason? ...
0
votes
1answer
33 views

How do I find how much money is stored on all deployed instances of a contract?

I am reviewing a certain contract, and would like to gauge how much money is stored on all deployed instances of this contract. Someone told me I can deploy a new instances of the contract to mainnet,...
2
votes
0answers
29 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: ...