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
0answers
6 views

How can I call contract which created from another contract (In TESTING)?

Hello guys now Im testing my contract, but I dont know how to call contract which created from another contract, If someone did it please help) Create I mean like following code. function ...
0
votes
0answers
4 views

Reflect.finance token-type deployment: change distribution on constructor

I am developing a token based on reflect.finance / safemoon way of work with reflections between holders, but I always reach an error when trying to distribute the initial token supply between ...
0
votes
0answers
5 views

How to see bytes in bytecode to estime gas cost of deployment

Pretty much title, trying to estimate my gas cost. I know each byte costs 200 gas. When I compile on Remix I see this object property. Is counting the number of characters in that an accurate measure? ...
0
votes
0answers
30 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,...
1
vote
0answers
20 views

How to test overriden function with mocks

I have the following contract contract TimeHelpers { function getTimestamp() internal virtual view { return block.timestamp; } } I have the contract that inherits from this contract ...
1
vote
1answer
14 views

What are the risks of sharing Ethereum contract deployer private key?

Let's assume I have deployed a new Ethereum contract. I hold private key of deployer wallet. Based on the contract code, deployer wallet received some tokens in it's balance, but I have moved all of ...
0
votes
1answer
10 views

Deploy a new contract

I know that my question is probably funny, but I need to understand the deployment workflow more deeply. As many people use OpenZeppelin, I am not an exception. I imported the file into my contract ...
0
votes
0answers
19 views

How to access different contracts with same name in Truffle

I deployed three contracts where the contract itself is same but the parameters are different. const Token = artifacts.require("Token"); module.exports = async function (deployer) { // ...
0
votes
0answers
11 views

Programmatically configure hardhat network

I'm trying to programmatically configure the hardhat network (instead of specifying it in hardhat.config and using --network nname) before deploying a smart contract. So, something like this: import { ...
0
votes
1answer
16 views

How can I query for smart contracts owned by a wallet address?

I'm playing around with programmatically forming DAOs. Essentially I want to create a frontend users can come to, type in a name, click a button and deploy a smart contract. I'd like to display a list ...
0
votes
1answer
14 views

What is the best practice when importing Contracts

I will try to clarify my questions with visual aid. The picure above is how I usually import contracts. For example, I import Both C and B contracts to A, even though B already imports C too. ...
0
votes
0answers
16 views

Solidity error basic programme

I am not able to find the error to this problem Can anyone please help me with it It is showing that hasDeceased function is having some error... Not able to access the function ...
0
votes
1answer
22 views

Why does my contract deployment in Remix get stuck at "creation of contract pending"?

I am using Remix in Chrome. When I click on deploy, my contract gets stuck on 'creation of contract pending'. Can someone help me please?
0
votes
1answer
11 views

Factory contract deploy external contract

I have a factory contract that has rather a small size, it contains the deploy function, and is pausable. I want to extend that contract by adding new features but when I add anything it becomes ...
0
votes
1answer
22 views

How is an interface initialised?

// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity =0.7.6; pragma abicoder v2; import '@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol'; import '@uniswap/v3-periphery/contracts/...
0
votes
1answer
18 views

How to get the address of the contract deployer?

What is the easiest way to get the address of the deployer from a contract (assuming I have the contract addresses of course)? It's possible to see on etherscan, but I was wondering if there was a way ...
0
votes
1answer
28 views

When to use EIP-2470: Singleton Factory?

As far as I know, there are 2 ways of deploying a smart contract: normal deployment using an Ethereum address or through Singleton Factory smart contract. When to use the Singleton Factory smart ...
0
votes
0answers
39 views

What is best way to batchMint erc1155 nft and send to someone also

Is this how I would mint an ERC1155 while transferring the token a specific address simultaneously (which is not msg.sender)? Below I modified mintBatch, and mint function. Reason I am questioning - ...
0
votes
1answer
16 views

How can multiple contracts exist in a single file?

Consider the following file contract A { } contract B{ } contract C{ } Is a file like that valid? Can a .sol file contain multiple contracts as above? If yes, which contract would the deploy address ...
2
votes
1answer
76 views

Same ERC20 token on both BSC & Ethereum networks

I'm developing a ERC20 token to deploy on BSC network. But the client requests that the token should be on both BSC & Ethereum networks. I did a research and found out these methods. Binance ...
0
votes
0answers
13 views

Solidity : Could not find artifacts for Migrations from any sources

I have an issue I tried to find solution here but not solved. I create this truffle-config file : require('babel-register') require('babel-polyfill') module.exports ={ networks:{ ...
1
vote
1answer
28 views

Are there deployed template smart contracts

I noticed that a lot of code is reused between smart contracts,so are there any template erc747 or erc20 contracts that we could use delegate call on to avoid unnecessary usage of storage. I think it ...
2
votes
2answers
109 views

How to deploy a bytecode-only contract without an ABI

I see a contract's bytecode on chain that I want to re-deploy almost verbatim, but the issue is that there's no verification -- no ABI or source code. Can I still redeploy this contract to a hardhat ...
0
votes
1answer
23 views

Status false Transaction mined but execution failed - Donatio contract

I'm trying to deploy my donating contract on FTM testnet in Remix. It compiles successfully, but when I run the donation function, I got this error: status: false Transaction mined but execution ...
0
votes
1answer
21 views

Estimating cost to publish a contract

I'm close to publishing a contract to the Ethereum mainnet after a couple of months of publishing contracts to Rinkeby. I just want to try and estimate how much it will cost me to publish it to ...
1
vote
0answers
39 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? ...
1
vote
0answers
12 views

"false Transaction mined but execution failed" error when deploying on Remix VM

I've been trying to clone the Safemoon contract and deploy it on the Remix virtual machine. The contract compiles fine but I get this error when trying to deploy: Gas do get deducted from the ...
1
vote
1answer
207 views

Error on Remix: creation of Ballot errored: Error encoding arguments: Error: expected array value

I'm a complete beginner and I'm trying to deploy the 3_Ballot.sol contract which is a sample contract on Remix. It compiles perfectly fine but it gives this error when I try to deploy it: creation of ...
1
vote
0answers
14 views

brownie deploying contract get transaction-receipt

Is there a way to get the transaction-receipt when deploying a contract with contract.deploy()? The method returns the Contract object but i also want the transaction receipt. Background: i want to ...
0
votes
1answer
50 views

SC not deploying and getting fail/pending everytime

I have been trying to deploy SC, but every time transaction goes into pending state. Tried with many SC but even simplest SC is not getting deploy since sunday. I am using remix IDE over injected web3 ...
1
vote
0answers
36 views

getaddrinfo ENOTFOUND mainnet.infura.io

I got this error when deploy my contract. It never happened using rinkeby testnet same key, same project. I got this error 3 time and I already spend $3000 ETH for this error How can I predict this ...
0
votes
1answer
26 views

Can I get abi file from deployed contract? or resore abi json file

I deployed ERC-721 contract to mainnet last night with truffle Contract is successfully deployed but no abi file generated (I don't know why..) so I can't run my dapp https://etherscan.io/address/...
0
votes
1answer
43 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 ...
1
vote
0answers
16 views

I can't figure out how to get hard hat working in VSCode

I installed version 8.3.0 of hardhat vis the terminal, but when I type npx hardhat to create a new file, it just brings up a list of global and available options. Additionally, hardhat has not created ...
0
votes
0answers
35 views

Problem during deploy a smart contract from an other

i have a question about give permission to one smart contract to be deployed only from an other. I have deployed my first smart contract on mumbai testnet from my hardhat local environment. I have ...
0
votes
1answer
33 views

Can an ERC-20 token's contract be modified after initial offering?

If a custom ERC-20 token is initially issued, can its solidity code be modified for all existing holders and circulating supply to include a new function? For example, you issue ERC-20 token in ...
0
votes
0answers
15 views

How to know if i can connect to a network?

I deployed to Rinkeby, when I connect to Rinkeby everything is ok, but if I change the network (for example Ropsten), I am getting an error that is ok as well because my contract is for Rinkeby. my ...
1
vote
1answer
99 views

How to deploy gnosis safe contracts on multichain

I am trying to fork gnosis safe react and contract repository. I have successfully set up gnosis safe react and contracts locally. I just want to know that how can I deploy its contracts by using my ...
0
votes
1answer
22 views

I'm trying to deploy using env. but, it s not wokrin

I'm having a really hard time.. I'm trying to set up the .emv so can work correctly think this is the problem. not missing.. **dotenv: .env wallets: from_key: ${PRIVATE_KEY}** Note: copy both private ...
0
votes
0answers
14 views

Trying to make rock paper scissor smart contract

I am teaching myself solidity and I am trying to make a very basic Rock Paper Scissors app. I am trying to compare strings at the end to determine the winner, but solidity won't let me use the == ...
0
votes
2answers
30 views

Uncaught TypeError: contract.name is not a function

I`m trying to check if I correctly deploy a contract with truffle and ganache. I run truffle console and then contract = await Kryptobird.deployed(). But when I try to get the name of the contract I ...
0
votes
1answer
23 views

How to use constructor to set interfaces addresses?

No really a problem, just need to understand a few things : With this piece of code, transaction is reverted when calling "getEstimatedTokenForBNB" function. // Initialize Parameters ...
0
votes
0answers
9 views

Monitor Node for any new ERC-20 tokens [duplicate]

For a research project, I'm interested in monitoring the creation of any new ERC-20 tokens. My challenge is that I can't figure out how to identify an actual ERC-20 vs. any other general solidity. ...
0
votes
0answers
35 views

Create an ownerOnly function in a contract B that can only be called through another contract A by setting B's owner to be the A contract

I don't know to describe my question. So I will try to explain it here. I'm working with truffle. I have a Contract A that deploys a Contract B. A passes it's address to B. B's owner is set to the ...
0
votes
0answers
35 views

Contract deplyment using metamask?

I am trying to deploy a smart contract using Metamask for my web toy project. I want to implement such a web, that users can generate a token using only one click. I understood how to deploy smart ...
1
vote
1answer
24 views

contract factory function causes contract to exceed size limit

I'm writing a smart contract where one of the functions deploys a payment splitter contract that inherits from OZ PaymentSplitter.sol. I'm doing something like: function splitterFactory(address[] ...
0
votes
1answer
74 views

How to reference One Contract Into Another Contract In Solidity

I have 3 contracts that I am trying to deploy.2 are dependent on the third one, but for some reason, I am unable to call function from the other contract. Below is my code. ERC20 Token // SPDX-License-...
0
votes
0answers
71 views

in case we will mint all NFTs, did we still need add set price and withdrew function in solidity contract

greeting the next code is solidity contract code. it continue three functions. 1- one, take svg image and encode it to base64 to produce 'image uri'. 2- second one, take the 'image uri' and add to it ...
0
votes
0answers
55 views

Continuous Timeout Error when deploying to Rinkeby Testnet

UPDATE: Deploying to Rinkeby testnet using Remix IDE WORKS. Which means my truffle-config.js is indeed very, very messed up. Before I go on to explain my issue, I'm making it known that I've look at ...
0
votes
0answers
112 views

I can't deploy large contracts with Optimizer enabled

I'm aware since Spurious Dragon there's a size limit for the contracts, I cloned this repository to test it locally and learn about how everything works, but I can't deploy some contracts due to the ...

1
2 3 4 5
29