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

Accesing state variables in an other contract

I as trying to add methods in a contract, but it got so big that i couldn't deploy it with truffle. Now i need to create an otehr contract that will be called instead of the original contract to ...
0
votes
0answers
15 views

Does checking entries in mapping increase gas cost if my mapping goes larger?

I have a mapping that store an hash from all smart contract transactions (NFT tokens). For every transactions, I need to check if the hash function is NOT in my mapping. If it's NOT in the mapping, I ...
1
vote
1answer
283 views

Problem retrieving ABI array from API of etherscan

I deployed my contract on ropsten through metamask and solidity browser and published it on etherscan so I can import ABI code for my nodejs app and work accordingly. When I open my contract's ABI ...
1
vote
2answers
745 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
1answer
160 views

contract does not gets deploy to rinkeby via Infura

I am trying to deploy my contract to Rinkeby network via Infura. But it actually does not get deploy to network when i run node deploy.js terminal does not spit out the address at which it is deployed....
0
votes
1answer
105 views

Truffle config gas price confusion

I'm doing a dry run of a mainnet to get the total gas cost/ Replacing 'Migrations' > Total cost: 0.000343902 ETH Replacing 'EthText' > Total cost: 0.001205478 ETH Summary =====...
1
vote
2answers
34 views

What's the default erc20 decimals?

As we know, decimals is an optional parameter on ERC20. I was wondering what if decimals is not set on a contract. Does it mean that if I send 10 in the transfer function, it means that it actually ...
3
votes
1answer
572 views

Are contracts deployed to the same address on different chains susceptible to replay or other attacks?

A contract can be deployed on different chains at the same address by using the same private key with the same nonce on each chain. Given that forking a chain opens up possible replay attacks on ...
0
votes
0answers
8 views

linking contract deployment process to a html button

It's been a while since i am struggling with this issue in my project. Actually my main purpose is to have my contract deployed by clicking just one button which does all steps we are doing on Remix ...
1
vote
2answers
122 views

Is it possible to connect to public Ethereum like blockchain with Remix to deploy and view contracts?

I've tried to do so by specifying the web3 provider and the 8584 port but it gets stuck on every try. Is this possible? if so, is there another solution for that need?
1
vote
1answer
16 views

Do contract size increase with gas in block?

I'm trying to deploy a contract with REMIX but it throw an error "smart contract too large, not enough gas". Is REMIX hardcoded for contract size ? Do smart contract size increase with ...
4
votes
1answer
143 views

How to work with inherited contracts in EthereumJ?

In EthereumJ, I have two contracts i deployed them individually,first one was deployed but for the second i got error as in that i was calling function of first one and example i have second is first ,...
0
votes
0answers
42 views

Verifying Smart contract in testnet bscscan/ bscscan

Compiler debug log: Error! Unable to generate Contract ByteCode and ABI (Expected library(ies) but one or more was not provided) Found the following ContractName(s) in source code : Address , Context ,...
0
votes
2answers
605 views

web3.eth.getAccounts() never give any output

const deploy = async () => { **var acct = await web3.eth.getAccounts();** console.log("ac", acct); } deploy(); even the console is not getting printed,what could be the reason? ...
0
votes
1answer
175 views

Failed to verify contract source code due to timeout/memory limit

Failed to verify contract deployed through remix on Ropsten network both using optimization and without it. Error is: Exception #1 Occured: ERROR|The Contract solidity compilation has exceeded the ...
3
votes
1answer
2k views

Error from sendSignedTransaction: Error: Returned error: replacement transaction underpriced

I am the beginner in Ethereum stuff need guidance please help I am running a private ethereum network and using mist wallet here is my contract code pragma solidity ^0.4.0; contract MyFirstContract ...
1
vote
0answers
12 views

deploy a smart contract in production with truffle

I'm ready to deploy a smart contract in production ethereum blockchain, may I remove 1_initial_migrations.js from my project? As far as i can see, when i deployed the contract to rinkeby test network ...
0
votes
1answer
124 views

Cannot Deploy to Rinkeby using Truffle, Infura, and Node

I am trying to deploy a contract to Rinkeby using Node and Truffle but I get a lengthy error: Truncated Error: Attempting to deploy from account 'MYACCOUNT#' [object Object] [object Object]...
0
votes
2answers
242 views

How to communicate with a deployed token?

Using Truffle, I am trying to deploy the following contract: pragma solidity ^0.4.13; contract ERC20Events { event Approval(address indexed src, address indexed guy, uint wad); event ...
1
vote
3answers
381 views

How do you implement a front-end contract with back-end functionality in Solidity?

How do you create a front end contract that calls a back end with the idea of being able to upgrade or change the back end contracts without having to redeploy the front end contracts?
0
votes
0answers
17 views

Listen for new ERC20 token deployments in golang?

Is it possible to listen for new contract deployments ? More specifically ERC20 tokens ? Then abstracting the decimals and ticker and name. I am trying to create a list of all new ERC20 deployments ...
0
votes
2answers
247 views

Can not deploy source code (Flatter Solidity file which I copy from Etherscan) on Remix ! Any helps?

[The IPFS link to see source code] (http://dweb.link/ipfs/QmVcFrLDPrEY8sveEdXnib6etMtes8z12GsNo21vbfdtiv) The error I got when try to deploy SAFEMARS contract : creation of SAFEMARS errored: Cannot ...
0
votes
1answer
21 views

Is it compulsory to deploy 1_initial_migration.js every time I deploy a contract?

When I run truffle deploy, it deploys 1_initial_migration.js before every contract. Is there anyway this can be avoided? Or is this part of protocol and is supposed to happen everytime? Thank you.
0
votes
1answer
351 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....
1
vote
0answers
13 views

Contract method works on local but not on testnet

The following method, which works perfectly fine on my local ganache. function someMethod() external view returns ( bool someValue, uint256 lastIndex, uint256 totalTokens ...
0
votes
0answers
8 views

How to model smart contracts?

So Solidity is contract-oriented, which is similar to OOP. However, there are some differences I'm realizing now. My problem is such that I have a contract called Agorum, which represents contracts of ...
0
votes
1answer
283 views

testrpc --account private key length is invalid even though its my account

I tried to initiate a testrpc account and passing my account with value to test the transactions but when I keyed in my key 0x94fd019eeb92780477b01ce5555513d3755b5193 it says that the key is invalid. ...
1
vote
4answers
175 views

Assigning address, data, and gas to smart contract to deploy with Node-js

I used this guide to deploy a smart contract with Node-js. I followed as far as my contract was created as an object. Because the mentioned guide is old some web3 methods changed nowadays. So it looks ...
1
vote
1answer
32 views

Are these two equal: web3.eth.getCode(<contract-address>) === type(Contract).creationCode

This question has been asked before in all sorts of convoluted ways. I am asking a very simple question and would like a very straight forward answer (if possible). What does the result of the call to ...
0
votes
0answers
154 views

How do I fix this error when deploying a contract?

The error is "The called function should be payable if you send value and the value you send should be less than your current balance." When I clicked on "debug" on remix, it ...
19
votes
5answers
11k views

What is the real price of deploying a contract on the Mainnet?

I'm trying to deploy a contract on the mainnet, but I've been getting some issues deploying with Truffle. ➜ ballot git:(master) ✗ truffle migrate --network mainnet --dry-run Using network 'mainnet' (...
2
votes
1answer
706 views

How to add website link to erc20 token on etherscan.io

How can we add this official site link to our deployed contract? Like in the image below: Here is my deployed contract address: https://etherscan.io/address/0xab73a739729a21b2299761408507556d2719af89#...
1
vote
0answers
16 views

How did 1inch token contract get the special address? [duplicate]

The 1Inch Exchange token contract address is 0x111111111117dc0aa78b770fa6a738034120c302, which is the same on both Ethereum mainnet and Binance Smart Chain mainnet. As I understand, when deploying a ...
3
votes
1answer
219 views

Safely deploying a contract with the same address in different chains

As far as I know, we can deploy a contract with the same address in different chains by using the same private key to create an account in different chains, and using that account to deploy the ...
0
votes
0answers
11 views

Truffle deploy smart contract from specific file [duplicate]

My contracts folder has the following files: AdSpace.sol,Migration.sol,AdSpaceV2.sol, and EAdSpace.sol. I have earlier deployed AdSpace.sol, and just added the other 2 files. AdSpaceV2.sol contains ...
1
vote
0answers
25 views

Web3ProviderEngine does not support synchronous requests on deploy to private network

I know there are many similar questions, but I've been through all of them and haven't got the answer I'm looking for. I'm trying to deploy a smart contract (that's already been compiled and deployed ...
1
vote
2answers
1k views

How to find the block, when contract was deployed

I have contract address, and I want to find the block number, when it was deployed, to use it for loading events for this contract. Is it possible?
0
votes
0answers
83 views

Remix Ethereum: Sorry, We are unable to locate this TxnHash

I want to deploy a contract, a very simple ECR20 standard. Im using Remix/solidity and when I test with the Ropsten test network it works well. I'm using MetaMask I then tried to deploy to the main ...
0
votes
1answer
396 views

How to deploy a smart contract on a private blockchain?

I have used geth to setup a local private blockchain. I have been able to setup two accounts and send ether from one to the other and mine the transactions. Now I am trying to deploy a smart contract. ...
0
votes
0answers
26 views

Reeusing a contract already deployed on remix

I am using with this contract https://pastebin.com/WCGNfbd8 and once I have compiled and deployed it on remix, there is functions that appear under "deployed contract" in "deploy and ...
3
votes
1answer
45 views

Link a library to a smart contract only with Solidity and bytecode

I work in Truffle development environment and use Windows PowerShell. My Solidity code is a test code and is simple. There is a library called Alireza that just compares two uint values. There is a ...
0
votes
1answer
100 views

Cannot read property 'sendEth' of undefined, 'sendEth' is function in smart contract

Hi I'm trying to interact with an Ethereum smart contract but it is always showing "TypeError : Cannot read property 'sendEth' of undefined" where 'sendEth' is a function in my smart contract Here is ...
2
votes
1answer
4k views

Can not verify contract on etherscan.io “Error! Unable to generate Contract ByteCode and ABI”

I'm trying to verify my deployed contract on etherscan.io However I get the following error: "rror! Unable to generate Contract ByteCode and ABI" I'm not putting in an ABI because my constructor ...
6
votes
1answer
5k views

Unable to verify Solidity contract code on etherscan.io

I know this question has been asked many times before. I've read loads of answers, but nothing seems to work for me. I first tried to verify the source code of a much larger, more complex contract, ...
0
votes
2answers
87 views

How many functions allowed per contract? + solidity

I deployed a contract to ropsten and tried to call a method from frontend, but was getting TypeError: Cannot read property 'call' of undefined So I checked my instance via this.Test.deployed()....
1
vote
0answers
20 views

Is there situation when using constants instead of literal values in the code will make the contract deploy more expensive?

I was reading a smart contract code in solidity and I found some magic numbers (literal values as function arguments or in some expressions). My first impulse was refactor it to use named constants ...
1
vote
0answers
341 views

How much liquidity is needed to introduce new ERC20 on uniswap?

How much liquidity is needed to introduce a new ERC20 on uniswap? For example for 250 billion tokens of new ERC20 contract "X" how much it would cost to create a pool so the 1 "X" ...
0
votes
1answer
33 views

Contract not properly deployed with Remix

Can someone help me deploy a token contract with Remix? I try to deploy this contract using remix and this is the result. The contract deployed does not appear to be my token contract. How can I ...
0
votes
1answer
22 views

What needed for the deployment and approvement of smart contract creation transaction?

I attach the following image. Once a user creates a digital wallet (for example in MetaMask), then they receive a private key and a public address of their account as outputs. Then, after having ...
4
votes
2answers
925 views

Importing a contract from another contract in NodeJS app

I'm using a function in my NodeJS app to deploy contracts. The user inputs the contract he wishes to deploy and the app deploys it. The structure of the app is . ├── app │   ├── models │   │   └── ...

1
2
3 4 5
25