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

allowance - why not directly transfering?

I have a couple of questions relating ERC20... why is allowance needed ? It would be the same as if instead of approving my 10 tokens to some address to spend, I could directly transfer 10 tokens to ...
1
vote
3answers
1k views

Truffle Migrate SyntaxError: Invalid or unexpected token

I am trying to follow the truffle pet shop tutorial and I am doing my first truffle migration. After this command: truffle migrate I get this error: SyntaxError: Invalid or unexpected token ...
0
votes
1answer
111 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 ...
4
votes
3answers
331 views

Publishing contracts with libraries using web3.py

Im trying to publish contracts with libraries in them and im getting the below issue. Contracts without libraries publish just fine. Can someone who might have faced this issue before advise what the ...
0
votes
1answer
38 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 ...
3
votes
2answers
28 views

Can I change the comments in a contract and still pass Etherscan verification?

Suppose that you have a contract, someone audited it, and you would like to use that specific version for compilation and deployment to Ethereum. Now, you want to verify the source code on Etherscan, ...
5
votes
1answer
150 views

Receive deployed contract address by transaction hash with JSON-RPC request

I want to receive deployed contract address by transaction hash. Transcation example - 0x996a683acd59a2ad17461f76ce0f387a89a5ac257ec5d667556219c6acc7f45a. As you can see this contract was deployed by ...
0
votes
1answer
31 views

execution reverted: DepositContract: reconstructed DepositData does not match supplied deposit_data_root

I am getting this error when deploying Goerli's Medalla Beacon Contract through Remix. execution reverted: DepositContract: reconstructed DepositData does not match supplied deposit_data_root input (...
0
votes
1answer
52 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
1answer
831 views

How to get address of contract during migrations

There 2 contracts: Token and Crowdsale. To deploy crowdsale contract we have to know address of Token contract. How to get this address in migrations? var Migrations = artifacts.require("./Migrations....
0
votes
0answers
166 views

Timeout while attempting to connect and deploy in the Ropsten network

I am trying to deploy the contract in Ropsten network. It fails with the timeout error The same is deployed in Ganache without any issues. Please advice truffle-config.js require('dotenv').config(); ...
0
votes
2answers
235 views

app.vote(1, {from: web3.eth.accounts[0] }) not working

I am following a tutorial from Dapp University about building Election Smart Contract. When I run this command in the console: app.vote(1, {from: web3.eth.accounts[0] }) I get the following error: ...
1
vote
1answer
202 views

Unable to unlock account before deploying contract to rinkeby

Each time i try to unlock my account w/ password i get the error: Fatal: Failed to unlock account 0x1288AB0bf7FE0Ad09d7f28bd4Ab2C06332c625a2 (no key for given address or file) my geth command is: ...
3
votes
0answers
49 views

What happens in the account state when we pre-send ethers to a smart contract?

I'm asking this question in relation to this one : pre_sending Ether where the OP asked in a comment of the answer about what happens at the low-level when pre-sending ethers to a smart contract. As ...
2
votes
1answer
261 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 ...
2
votes
1answer
198 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: { ...
0
votes
1answer
23 views

Pass mapping as constructor parameter

I'd like to save the contract addresses from DAI and UNI into a mapping when calling the smart contract constructor depending on the network. Below is a minimalistic example that works fine: contract ...
0
votes
1answer
38 views

there is some error when Depoly SimpleMultiSig

I want to use the contract https://github.com/christianlundkvist/simple-multisig to deploy a multi-sig contract, but whatever I change the gaslimit or value in Remix, deploy aways failed. One of the ...
1
vote
1answer
66 views

Deployed Smart contract methods are not updating the value when restart the geth instance.Why?

Started Geth using following command geth --identity "testpvtnode" --rpc --rpcport "8545" --rpccorsdomain "*" --datadir <pvtnetdatapath> --port "30303" --rpcapi db,eth,net,web3,personal --...
0
votes
1answer
60 views

What happens if someone DOS's my infura api link?

I have an infura link, and put it on my frontend as the default provider url. What happens if someone DOS's that link and uses up the daily api request limit? It's unclear how infura protects against ...
3
votes
5answers
5k views

Is there a way to extract ABI from a deployed contract?

I am building a web UI for testing smart contracts and currently I have to supply the ABI for a contract I test. Is there a way to extract the ABI from a deployed contract (preferably programmatically)...
1
vote
0answers
14 views

Deploy contracts without deploying Migrations

I would like to deploy my contracts to mainnet using truffle. I figure it's the easiest and safest way to do it since I already deploy to testnet using truffle. The problem is I don't want to deploy ...
0
votes
1answer
60 views

Cannot figure out how to set constructors and ABI for a contract

So I've been breaking my head over this for the last 2 days. I cannot seem to figure out how to get the constructors and ABI set up properly. I'm testing smart contracts by copying Sushi contract from ...
0
votes
1answer
42 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 ...
1
vote
1answer
134 views

Contract not deploying with web3

I'm writing a web-based DApp with web3, and am trying to get my JavaScript to deploy a contract. I've set up the abi, contract, and bytecode as follows: const trade_abi = [ ... not shown: ABI copied ...
1
vote
1answer
171 views

Cannot deploy new contracts with pending transactions (Ropsten)

I have a very strange and annoying problem. I am trying to deploy a new contract however it just keeps cycling. I have the same problem on the POA testnet and on Ropsten. Please see below: I have ...
0
votes
0answers
22 views

Issues with autogenerated go file while using abigen

I have a simple sol file message.sol pragma solidity >=0.5.10; contract Message { string public message; constructor(string memory initMessage) public { message = initMessage; ...
1
vote
1answer
92 views

Deploying fails with different compile version

I'm trying to implement a simple card game. Actually, everything is working fine. Until I tried to move from 0.4.0 to 0.4.22. Any idea what is going wrong? Thanks a lot. And here the code: pragma ...
1
vote
1answer
77 views

Which one of methods should I choose for deployment of smart contract geth or a wallet if I have to build API for smart contracts in nodejs?

I'm having trouble to understand which method would be better for deployment geth or a wallet if I'm building API in nodejs using web3. Where exactly is the contract stored?? Is the contract ...
0
votes
2answers
3k views

Cannot read property 'deployed' of undefined issue

I am trying to launch an Election-Dapp. I have these dependencies installed: - Nodejs v9.11.1 - npm v5.8.0 - Truffle v4.1.3 - web3js v0.2 - ganache-cli Below is my solidity contract pragma ...
1
vote
1answer
59 views

Deploy from Remix to Quorum using password? “authentication needed: password or unlock”

I can SSH into the box that is running Quorum: run geth with the flag --allow-insecure-unlock geth attach new-node-1/geth.ipc personal.unlockAccount(eth.accounts[0]) I'm interested in knowing if I ...
1
vote
1answer
62 views

Storage Address of Smart Contract Variables

I need to know storage address of solidity smart contract variables before its deployment. how can I get this?
1
vote
1answer
84 views

What is mined? Transaction or block?

Until today, I thought the transactions are just gathered until big enough to construct a block. Once it is constructed, the ethereum miner will race to find a secret nonce, and the block will be ...
1
vote
1answer
186 views

What value to set for Web3 provider when dapp is deployed to Heroku or other Hosting site

I am trying to host my dapp on Heroku and smart contract on Rinkeby network. My dapp has a front end in node.js and jquery and an express backend server that I use to listen to solidity events and to '...
1
vote
0answers
20 views

Can I deploy a smart contract from studio.ethereum.org to mainnet?

I found this website quite useful: studio.ethereum.org. However, it seems that I cannot deploy smart contracts from there to mainnet. Is this correct, or is there a way to do it?
2
votes
1answer
366 views

How to deploy contract with bytecode from etherscan?

For example, I want to deploy a contract to my local testnet. But I only have its opcode from etherscan. How to deploy the contract with just those runtime bytecode?
0
votes
2answers
207 views

Deploying contract to infura via @truffle/hdwallet-provider is hanging

I created a contract and deployed to Ganache test network successfully but it is not deploying to infura. //this section is clean. worked for Ganache var output = JSON.parse(solc.compile(JSON....
1
vote
1answer
56 views

Infura: certificate has expired error when deploying on Rinkeby

I was trying to deploy some contracts on Rinkeby using Infura, and got the following error: Error: certificate has expired\n at TLSSocket.onConnectSecure (_tls_wrap.js:1088:34)\n at TLSSocket....
0
votes
0answers
33 views

Can we deploy old deployed NFT contract to Ethereum 2.0?

I have already deployed contract on Ethereum. Now I want to deploy it on Ethereum 2.0, is it possible? According to some resources Ethereum 2.0 does not support for smart contract deployment. Thank ...
0
votes
1answer
95 views

How to connect to a peer in ethereum and then run contract on ethereum?

I have developed a smart contract and run it with remix in cases of javascript vm and web3 provider. Now, I want to run it such that my computer to be connected to real ethereum network. I think in ...
1
vote
1answer
16 views

Trying to do interaction between 2 contracts. But compilation failure showing should be declared Abstract

WinCon.sol EnemyCon.sol To create interaction, I am creating interface for EnemyCon in WinCon.sol, but Remix is throwing compilation error stating "EnemyCon should be marked abstract". I ...
0
votes
1answer
93 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 ...
6
votes
1answer
1k views

How to generate a vanity address for a smart contract to be deployed on?

I am aware of the possibility to generate vanity addresses for normal accounts. However, how is possible to generate vanity addresses for external owned accounts (which host smart contracts)? I'm ...
0
votes
1answer
190 views

Deploy bytecode

I have a compiled contract (actually it's just arbitrary data) that I would like to store as an account. It is possible to store this as a new account using web3js? I do NOT have a constructor ...
0
votes
0answers
35 views

How do I verify a contract that has imports on etherscan?

There is an answer from 2017 here saying that it's not possible but it's been 3 years since then so hopefully there is progress. My Vyper contract looks something like this: import ERC20 as ERC20 ...
0
votes
0answers
160 views

What factory (UniswapV2Factory) shoud I use when deploy Sushiswap clone?

Hi I'm forking Sushiswap and about to deploy contract to mainnet. While I'm writing deploy_contract.js in Truffle. Which Factory shoud I use in my migration code? I saw several code example but ...
1
vote
0answers
32 views

Private PoA deployment leads to 'invalid gas used' error

I'm trying to deploy a contract to a private clique chain running on two devices (laptop and raspi). Deploying the contract when running multiple nodes on a single device worked fine as per usual, ...
0
votes
1answer
26 views

Cannot verify source code smart contract on Etherscan! PLEASE help me

Link for the contract on Etherscan: https://ropsten.etherscan.io/address/0x339237da476f50777da2d04b05037a805e46fcdb Arguments Type: String,String, uint8 ~ "FinanceToken", "MYFI", &...
1
vote
1answer
132 views

Remix Browser and Quorum Local Node

When i try to deploy any contract using quorum local node in remix browser with solidity version higher than 0.5.0, the contract gets deployed but any transaction to interact (fetch / update) the ...
0
votes
0answers
10 views

How to deploy a compiled stateless contract and which doesn t have creation code/transaction?

I got a deployed contract bytecode from an internal project which I d like to publish on the mainnet. The problem is it s just the bytecode without the creation code. Is there a simpler way to deploy ...

1 2 3
4
5
24