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
2 votes
2 answers
585 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
1 answer
537 views

Out of Gas error on deploying a contract on mainnet with enough ethers in account

I am facing issues while deploying my contract on the main net. I have tried the below contract deployment on rinkeby and ropsten without any issue. But when I am deploying this contract to the ...
0 votes
2 answers
1k views

Ethers setup provider for mumbai testnet

I try to connect to mumbai testnet in javascript. I don't want to use alchemy, infura or something like this, but want to connect drectly. I already have deployed a smart contract to mumbai-testnet. I ...
0 votes
1 answer
25 views

Redeploy safe with same address on OP

I deployed the Safe on Ethereum using this factory: 0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2. Now, I'd like to deploy the same Safe address on Optimism. Could you please provide guidance on the ...
0 votes
1 answer
305 views

Smart Contract Transaction Listener

I have some doubts regarding the Smart Contracts. First of all, I know that when I deploy a Smart Contract, this will have an address. We can suppose that I deployed the smart contract on blockchain. ...
0 votes
1 answer
2k views

Using "hardhat deploy" plugin, and it is not getting the deployed contracts

I'm using the hardhat-deploy plugin to deploy the contracts, the plugin successfully deployed the two contracts but, not performing the same this time, what I've done is... import { ...
0 votes
1 answer
721 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
1 answer
24 views

Methods not appearing when printing contract but do appear on Etherscan

I have a goerli testnet contract you can check out here. I'm trying to call executeFlashLoan using a javascript function using web3js, but the code acts as if the function doesn't exist. However, it'...
3 votes
2 answers
2k views

Ethers js deploy contract with balance, payable constructor

I have a smart contract with a payable constructor. I'm trying to figure out the syntax with ethers js how I can deploy the smart contract and send an initial balance with the deployment. const ...
2 votes
1 answer
327 views

How to make a web page button that invokes MetaMask to mint an NFT to Ethereum mainnet?

What programming languages background is required to publish a web page that has a button on it, which when pressed, invokes MetaMask for the user to publish an ERC-721 token to Ethereum mainnet? ...
0 votes
2 answers
153 views

contract.deploymentTransection.wait(1) not working in ethers version 6.4.0

Error is in this line const deploymentReceipt = await contract.deploymentTransection.wait(1); Entire code I am using to deploy contract and wait const { ethers, run, network } = require("hardhat&...
0 votes
2 answers
1k 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....
2 votes
1 answer
330 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
1 answer
244 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 ...
1 vote
2 answers
720 views

Error: factory runner does not support sending transactions DEPLOYMENT

Hi im tyring to deploy my contract bug following error Deploying TaskContract... Error: factory runner does not support sending transactions (operation="sendTransaction", code=...
0 votes
1 answer
574 views

Why do we need an Interface or the contract in ethers.getContractAt() function?

As per my understanding, if we want to get or interract with an already deployed contract, we can use this ethers.getContractAt() function. But since it's already deployed, can't we just give the ...
0 votes
1 answer
565 views

Deploy to Sepolia Infura Foundry: Solidity Scripting

I'm trying to deploy my contract with Foundry Solidity Scripting to Infura on the Seoplia test net. But Im getting this weird issue that appears to be related to the Infura API Key (formerly Project ...
0 votes
0 answers
4 views

How to put .opezeppelin folder at desired directory in hardhat?

I am using Openzeppelin upgradable with hardhat. By default the plugin store .openzeppelin folder at root but I have running multiple environments so would like to set .openzeppelin folder at the ...
0 votes
1 answer
777 views

Interacting with Contract instance works on hardhat local rpc but throws error on mumbai testnet

So I'm currently working on an nft marketplace and I have this function that gets all the collections(which are proxy contracts) in the marketplace and gets basic info from the contract, like the name,...
0 votes
1 answer
549 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 "...
0 votes
0 answers
25 views

Foundry default sender when deploying

I'm using scaffold-eth2 with foundry as a base framework but when trying to deploy I am getting this error: You seem to be using Foundry's default sender. Be sure to set your own --sender. No ...
0 votes
1 answer
2k views

Transaction underpriced

I used the search function, but I didn't find a solution. We want to create for our new religious NGO a ERC20 token. I got a sample contract, a Metamask account, went to redmix website and connected ...
0 votes
2 answers
78 views

Verification of contract using Brownie

I'm at the point of a solidity course where I need to get the API key token from etherscan.io. I followed all the steps, but my code breaks when I use Brownies deploy function with "...
2 votes
1 answer
548 views

"contract x" ran out of gas. Something in the constructor (ex: infinite loop) caused gas estimation to fail ganache

i'm trying to deploy contracts on private network ganache using ganache application. but it threw an error because of its big size: "contract x" ran out of gas. Something in the constructor (...
1 vote
1 answer
401 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 ...
1 vote
2 answers
2k views

How to get 10,000 NFTs on Opensea without paying gas fees

When talking about NFTs, there is a core concept I'm not understanding that I hope someone can help me out with. I can write and deploy smart contracts without a problem and I think I understand what'...
0 votes
0 answers
89 views

unsupported addressable value (argument="target") - [email protected] and @openzeppelin/[email protected]

When I create an OpenZeppelin ERC721 Smart Contract using OpenZeppelins Smart Contract wizard builder, I get an error when trying to deploy the smart contract to my local network using hardhat. I have ...
0 votes
1 answer
14 views

Send selected token (the one you deployed) with web3js

How to send a transaction of a token that I have in my wallet other than the default one like ether in Ethereum without a contract method just with web3js?
0 votes
1 answer
404 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
1 answer
505 views

solidity transaction error, The called function should be payable if you send value and the value you send should be less than your current balance

I want to write a contract using router from uniswap. But when swapping 1 token to another, I get an error The transaction has been reverted to the initial state. Note: The called function should be ...
1 vote
1 answer
544 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 '...
0 votes
2 answers
34 views

Failing to deploy any Contract

I am unable to deploy any contract, including the example contract shown below: // contracts/Box.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // Import Ownable from the OpenZeppelin ...
1 vote
1 answer
904 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
1 answer
1k views

Gas Estimation Failed idk why

the contract has 0 error's i am trying to deploy it trough injected web3 after i have full filled the constructor amounts and trying to deploy it i get this error creation of RATCOIN errored: [ethjs-...
0 votes
2 answers
715 views

Is HD wallet providers mnemonic same as your private key?

I'm trying to deploy a contract to rinkeby using truffle. In the truffle-config file, in the HD wallet provider, you are supposed to specify a mnemonic and also your api from infura. The problem is ...
1 vote
3 answers
514 views

TypeError: Cannot destructure property 'getNamedAccounts' of 'hre' as it is undefined

Currently attempting to deploy my smart contracts for a DAO DApp. When running: npx hardhat run scripts/deploy.js --network localhost I receive the following error: TypeError: Cannot destructure ...
0 votes
1 answer
55 views

Unable to deploy on Eth mainnet

i done all the steps and when im connecting to "Injected provider" its still asking to be on EVM version: shanghai. i want to deploy the CA on the mainnet.
0 votes
1 answer
411 views

hardhat fork, unable to call balanceOf

I have been able to successfully fork the mainnet of Avalanche locally via Hardhat and interact with existing smart contracts. Starting today though, without any changes in scripts, I tried the exact ...
2 votes
1 answer
602 views

Deploy smart contract with metamask ethers.js and ganache

I want to deploy smart contracts on front-end with metamask address as deployer. To do that, I first compile the smart contract with Remix and put the json output on my React project (I use Ganache to ...
1 vote
1 answer
884 views

invalid opcode: opcode 0x4b not defined when sending a new contract

I'm trying to create a new transaction and deploy it to the blockchain, but I'm obtaining this warning when I go to inspect the transaction result on etherscan: Warning! Error encountered during ...
0 votes
1 answer
21 views

Controlling Contract

Using truffle and makes me use truffle console but I dont want to and wouldnt either. Is there any other way interact with contracts and controlling their propreties and everything with an app or ...
1 vote
2 answers
1k views

web3.eth.getAccounts() : Cannot read property 'map' of undefined

const HDWalletProvider = require('truffle-hdwallet-provider'); const Web3 = require('web3'); const provider = new HDWalletProvider( 'passphrase', 'rinkeby.infura.io/v3/mytoken' ); const web3 = new ...
1 vote
2 answers
2k 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 ...
2 votes
2 answers
839 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 ...
13 votes
9 answers
33k 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)...
0 votes
1 answer
46 views

Does an Ethereum contract address hold two different kinds of files, one for the contract bytecode and another for the ABI?

Does an Ethereum contract address hold two different kinds of file, one for the contract bytecode and another for the ABI?
1 vote
3 answers
717 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?
1 vote
0 answers
13 views

Can't deploy contracts on Mumbai

I'm trying to deploy one smart contract on Mumbai with truffle but It gives me this error Compiling your contracts... =========================== > Everything is up to date, there is nothing to ...
0 votes
1 answer
721 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....
4 votes
3 answers
2k 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 ...

1
2 3 4 5
34