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

How to deploy smart contract using Remix 0.8.0 and MetaMask?

How do I deploy a contract on a test network using Remix 0.8.0 and MetaMask on a Firefox or Chrome browser?
0
votes
0answers
6 views

Can you use biconomy or GSN to pay for gas when deploying a contract?

I'm building a small dapp to allow users to deploy smart contracts without needed gas, where I'll use GSN or biconomy. I'm not sure you can use meta-transaction services like these for transactions ...
0
votes
1answer
14 views

Function not returning address when using web3 provider

I have a contract that works fine when only using remix. I needed to test the block size and block number. here someone suggested me to use ganache which I did but now I don't get the output I'm ...
0
votes
1answer
9 views

Etherlime Infura Rinkeby deployment causing ECONNREFUSED 127.0.0.1:443

I’m trying to deploy to Rinkeby using Infura (using Etherlime), but am getting a strange error: 'Error: connect ECONNREFUSED 127.0.0.1:443\n' + ' at TCPConnectWrap.afterConnect [as oncomplete] (...
1
vote
1answer
19 views

Get deployed contract dynamically in node JS

I am using Node JS and ethereum smart-contract. Every time contract gets deployed new addresses generated. Is there a way that node JS always gets an updated address of a contract? Any API so that I ...
0
votes
1answer
30 views

How to re-compile contracts using truffle which are updated?

I deployed something in the test-net(ropsten). Later, realized that one of my contracts needs some amendments. In such cases how to compile specific contracts and deploy only that contract using ...
0
votes
1answer
15 views

How msg.sender address gets generated in smartcontract?

msg.sender (address): the sender of the message (current call). Considering a scenario where a user uses a smart contract and try to perform a transaction. For that particular user msg.sender is the ...
0
votes
1answer
31 views

Saving migration to chain.insufficient funds for gas * price + value

It looks like the contract was deployed well on mainnet However, eventually this error occurs Saving migration to chain.insufficient funds for gas * price + value Does it mean that the migration was ...
0
votes
0answers
32 views

Deliver a dapp to a client, how to set as owner?

So, as a freelancer that wants to make a smart contract for a client, how do you set such client as the owner of the contract? Would it be setting the owner variable to the eth address of the client, ...
1
vote
1answer
24 views

What is the right way to calculate gas price and limit for contract deployment?

I have tried several times and reached up to a gasPrice of 65 Gwei and a gasLimit of 500,000 which is $7.6 and still the deployment fails with error "Out of gas". After spending tens of USD ...
0
votes
0answers
13 views

Buidler, scaffold-eth: Deploy factory

I'm working on deploying a factory contract which in turn has a function to deploy a three-contract ecosystem. One of those contracts also has a library contract with it. Factory.sol A.sol B.sol C.sol ...
0
votes
1answer
16 views

Buidler: Error: unresolved libraries, but why?

I'm attempting to deploy a contract using Buidler (via scaffold-eth), but am getting the following error: Error: Factory contains unresolved libraries. You must deploy and link the following libraries ...
0
votes
0answers
18 views

Error: No Keyring found for the requested account

I am an student and in this moment practicing how to create a simple smart contract in remix.ethereum.org. I got compiled the small program with function get without problem. When I deploy the program ...
1
vote
1answer
34 views

How to deploy Smart Contract on Ethereum 2.0

I want to know how to deploy Smart Contract on Ethereum 2 Testnet using web3 ?
1
vote
0answers
18 views

How can I automize process of deploying my contract?

I am using following appoach How to deploy Ethereum Smart Contract through Brownie to the Private Network. I want to automate this process in order to capture the transaction hash and deployed ...
0
votes
1answer
31 views

Deploying contract with web3. Two different methods fail

I tried this method to deploy a contract. It is described in the web3.eth.Contract documentation. var contract = new web3.eth.Contract (JSON.parse (abi_json_string)); contract.deploy ({ data: ...
0
votes
2answers
44 views

Sending extra data beside or inside a new smart contract

I'm doing a research about Ethereum smart contracts security and I need to send some extra data (for example some json data) beside or inside a new smart contract when I'm deploying that contract on ...
0
votes
0answers
11 views

Data storage : mapping vs sub contract deployment

I read over few website, tutorials and answered question here on SE. There is a huge warning about deploying new contract just to store datas. i.e. : bad uint256 public amount; bool public isAdmin;...
1
vote
1answer
61 views

deploy contract with ether.js

Im trying to figure out the best way to deploy a contract programatically using ethers.js with web3 I can just do: const contractInstance = new this.web3.eth.Contract(contractObject.abi) var ...
0
votes
0answers
15 views

Metamask not connecting with my account in ganache

I'm developing a project with truffle pet shop . when i connect my project to metamask using the private keys of a account , im not able to receive my account address on my code and though i connected ...
2
votes
1answer
33 views

Is the May 2017 contract creation attack still possible?

In May 2017, an "attacker" created a contract that attempts to create many other contracts(using many JUMPDEST operations in the creation bytecode) until it runs out of gas. I see the gas ...
1
vote
2answers
40 views

Truffle migration deployment: Transaction was not mined within 50 blocks

I am running my own Ethereum client node (Open Ethereum 3.0.1). I am using Truffle migrate to deploy my smart contract to MainNet. However, the contract deployment is taking too long. The result from ...
1
vote
0answers
45 views

Deploy smart contract to private network

I have been having issues deploing any smart contract to my private network. I'm using geth 1.9.15. Here ALL the steps that I made to get the error: //CustomGenesis.json { "config": { &...
0
votes
0answers
19 views

Trying to deploy a simple contract using node and getting the error: Unhandled Promise Rejection / Contract code couldn't be stored

I am doing an online course and trying to deploy using node. Can anyone help ID what I might be doing wrong. Thank you for any help! The error is below, followed by the js code. iii@iii:~/Digital ...
0
votes
0answers
18 views

Verify but keep coding hidden

Can I verify my Smart Contract on Etherscan but still hide the coding to prevent others from cloning the smart contract?
0
votes
1answer
40 views

How does Smart-contract's storage works?

I keep hearing that for each contract there is a storage as contiguous array (to have constant O(1) lookup) with 2^256 slots, 32 byte each, available. But it cannot physically be true. How is it ...
0
votes
1answer
22 views

truffle migrate: Accessing 2_deploy_contracts.js of another Truffle project

I am executing “truffle migrate” command but I am getting one reference error related to ‘adoption’ variable:there is no error related to compilation 2_deploy_contracts.js ReferenceError: adoption ...
2
votes
0answers
43 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 { ... } Now, there'...
0
votes
1answer
26 views

contract deployment fine on rinkeby but pending on mainnet

I deployed smart contract on rinkeby using web3 script and it works fine, actually deployed many times. Today I tried to deploy on main net and transaction is pending since 40 mins, gas limit is ...
0
votes
0answers
18 views

How to keep track of deployed versions and implement a CD strategy with truffle?

My original question on SO here didn't had much success... so I copy/paste it here, hoping for more interest. Thanks in advance! I'm working on a dapp project which includes a main smart contract, ...
2
votes
0answers
25 views

How to keep a Sidechain up to date with well known static singleton contracts?

it becomes more and more common in the Ethereum ecosystem to have contracts that only need to exist one time - and all other DApps/Contracts are interacting with this one contract instance. Here are ...
0
votes
0answers
21 views

How to deploy huge contracts using web3?

I have a huge contract (which exceeds the default contract code size set in Quorum). I have increased the Code size and Transaction size in the Genesis file to 128Mb. The contract works well when ...
0
votes
0answers
24 views

loadScript returns undefined

I am using Ubuntu 20.04 for creating a private ethereum blockchain using geth. I am required to load the "Simple.abi" script present inside home/contract. But when I give the file-path in the ...
0
votes
1answer
30 views

Deploying a smart contract using transaction manager in web3j

I am new to web3j and smart contract deployment. Consider a scenario where a user is too scared to give his wallet credential file or username/password or private key in a piece of code(the code is ...
0
votes
0answers
18 views

openzeppelin sdk deploy: missing contracts

I'm trying to deploy an Initializable contract using oz deploy but when it comes to pick it, it does not appear. My contract is a factory contract and also a GSNRecipient but it shouldn't make any ...
0
votes
1answer
29 views

light node can perform any operation what fast and full sync mode do, exception getTransationreceipt?

I need to send ethereum between wallets or interact with a token on the ethereum network can a light node has a constraint to do that,it can not perform any task as a full or fast sync mode node, I ...
0
votes
2answers
141 views

“Migrations” could not deploy due to insufficient funds

I'm getting the error: "Migrations" could not deploy due to insufficient funds. Sender doesn't have enough funds to send tx. The upfront cost is: 45000000000000000 and the sender's account ...
0
votes
1answer
15 views

How the contract address being decide when deploy it in another contract?

According to How is the address of an Ethereum contract computed?, I know a contract address is decided by the hash of deployer address and nonce. How about the contract is deployed through another ...
0
votes
1answer
27 views

Can't unlock address when using ganache-cli

I want to unlock an address and fund it with ETH in ganache that I don't have its private key. So I run this: ./node_modules/.bin/ganache-cli --hardfork istanbul --port 8545 --gasLimit 8000000 --fork ...
0
votes
1answer
25 views

When and where do I set ERC721 tokens' data?

I am currently working on a smart contract to sell ERC721 tokens. I understand that my code should have a function that allows me (the owner) to mint a token and add it to a list which stores all the ...
1
vote
1answer
25 views

API node js with call and send to a contract without metamask

I am new in Solidity. I'm trying to create a API in node js, which can be use without a navigator like chrome with MetaMask. I would like to test it with postman. But i have some problems with web to ...
0
votes
1answer
28 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 ...
0
votes
0answers
46 views

Deploy contract with web3 with ABI in JSON file give me “SyntaxError: Unexpected token o in JSON at position 1” [duplicate]

I got problem with my deploy.js script to te deploy my smart contract with web3. When I run it, I always got this error: Attempting to deploy from account XXXXXXXXXXXXXX (node:25929) ...
0
votes
0answers
19 views

How to deploy a contract when a private chain start?

ethernet vererion: 1.8.x, language: golang 1.11.x I wrote a smart contract in solidity. The contract's contructor has two parameters like this: uint256 _initialAmount, string _tokenName I ...
1
vote
1answer
24 views

How to get active users of Dapp [closed]

Is it possible to have unique constraint on parameters of an event? I will have a number of users using my Dapp, and I have provided functionality to delete the users. So while reading from the ...
1
vote
2answers
38 views

How to send PAXOS token which has not transfer method?

I'm new in Ethereum contracts. I could implement sending USDT tokens through web3.php, and everything work well. Now, I want to add PAXOS and send such tokens through my system. But I found there is ...
0
votes
2answers
34 views

Deploying a Contract vs. Instantiating a Contract

I apologize for the very basic question but I am a little confused. What is the difference between deploying a contract and instantiating a contract?
0
votes
0answers
16 views

Smart Contact to store data from XLS/CSV file

Is there any existing code/work on how to store data written in an XLS file into Ethereum (geth) using a smart contract? I am trying to publish data that is written in an XLS file onto the Ethereum ...
0
votes
1answer
21 views

Deploying Contract with React

I am trying to deploy a contract on react. But I can't seem to pull it off :( This is my code: this.myContract.deploy({ data:[big boi bytecode here], arguments: ['name', '...
0
votes
2answers
17 views

What causes .deployed() to return same contract instances in each test

It took me awhile to diagnose the problem. At first I just noticed that the states of my contracts were being affected by previous tests when running truffle test I then looked in the terminal tab in ...

1
2 3 4 5
21