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
3
votes
0answers
18 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
246 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
186 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
13 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 ...
2
votes
1answer
21 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, ...
0
votes
1answer
32 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
63 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 --...
3
votes
0answers
89 views

SPDX license when importing other people's contracts

Since Solidity 0.6.8, the compiler started throwing warnings if a contract isn't annotated with a SPDX license identifier: // SPDX-License-Identifier: MIT contract MyContract { ... } Suppose ...
0
votes
1answer
48 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
12 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
38 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
41 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
130 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
135 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
6 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; ...
0
votes
2answers
126 views

Is there a better way to implement search functionality?

Take the following code for example: pragma solidity ^0.4.23; import "./MyContract.sol"; contract MyFactory { address[] public myContracts; function createContract(string ...
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
76 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
42 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
43 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
44 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
175 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
327 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
123 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
30 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
28 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 ...
2
votes
2answers
414 views

Updating Smart Contract in Quorum with no change to the smart contract address

Understand that a smart contract address is deterministically computed from the address of its creator and how many transactions the creator has sent and thus every new smart contract deployment will ...
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 ...
0
votes
1answer
240 views

Getting ABI interface using solc offline

Suppose I have an inheritance contract (xyz.sol) with three contracts A, B and C such that C is B, I am trying to compile using solc offline in node console. Upon compiling, I have three separate ...
0
votes
1answer
218 views

Problem deploying a smart contract in web3 to the Ropsten testnet

I am having trouble deploying a smart contract to the Ropsten testnet. I have dug through a lot of tutorials and questions and I cannot seem to find an suitable answer. Thanks so much for you time! ...
0
votes
1answer
111 views

Etherscan Verification when using a ContractFactory

If I have a contract (ContractFactory) that creates several instances of some other contract (SubContract), is there a way to verify all instances of SubContract? pragma solidity ^0.4.19; contract ...
0
votes
1answer
43 views

Error on calling initialize after deploying upgradable contract

I have deployed my contract to mainnet,All thing was fine but after I tried to call initialize method I got error and I think proxies not initiated How can I do now? I lost some Ether and nothing ...
0
votes
1answer
13 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
92 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 ...
2
votes
2answers
662 views

How can I trigger a quorum private smart contract deployment from my js client app?

My question follows directly this answer to a similar question. I need for my client app users to be able to trigger private contract deployment. I've tried using privateFor with both the web3 and ...
0
votes
1answer
182 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 ...
1
vote
1answer
295 views

deploy a contract through a web UI

I was wondering what is the best approach to deploy a contract through a web UI. I am using meteor as framework and geth version 1.7 so i was thinking of using fs in my javascript to create a textfile ...
0
votes
0answers
22 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
57 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 ...
0
votes
1answer
35 views

How to include constructor arguments in bytecode for smart contract deployment in genesis block?

Please excuse if the title is not perfectly accurate but I had a hard time fitting my problem into 1 question. If you have a better title please feel free to suggest it and i will edit it. I want to "...
1
vote
0answers
28 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
18 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
112 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
9 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 ...
2
votes
1answer
326 views

call other contract's external function , the error: The contract code couldn't be stored, please check your gas amount

when I deploy a contract, the truffle frame told me this error :“The contract code couldn't be stored, please check your gas amount”。 the solidity code is: 1) Base.sol pragma solidity ^0.4.22; ...
2
votes
2answers
460 views

How to deploy a smart contract in a server?

I have developed a smart contract and compiled it with solc and bin and abi fils have been generated. Now, I want to deploy this contract using web3js in a linux server. How can I do it?

1
2 3 4 5
22