Linked Questions

1
vote
2answers
51 views

find out network using contract address

I know that in Ethereum, same addresses works across the network(mainnet and all testnets). But I am looking to know if there are any chances to find out the network on which a contract is deployed ...
3
votes
2answers
63 views

Smart contract - require token balance in constructor

I want to build a smart contract which can only be constructed, if there's an amount x of a specific ERC20 token available to spend for this contract. So either the contract has to be allowed to spend ...
1
vote
1answer
71 views

How to prevent the code of my contract being used in a CALLCODE?

Simple question but I couldn’t find the answer anywhere. How to know if the code of my contract is used in a CALLCODE or DELEGATECALL by third party sinceaddress(this)returns the address of the caller ...
1
vote
2answers
40 views

is account nonce network dependent?

In Ethereum, does Account nonce depend on network? I mean for same address on different network, will there be different nonce?
3
votes
0answers
84 views

Why two contracts got same address?

I've been testing payments for shopping cart on a private chain. I create and deploy contracts to disburse payments among sellers. So if a shopper buys same items again the contracts for two carts ...
0
votes
0answers
79 views

Is it possible to get direct access to a contract?

All contracts have addresses. Is it, in theory, possible to find the private key of this address and then get access to this contract? Questions if this is possible: If one gets access to the ...
0
votes
4answers
70 views

Use custom ERC20 addresses

I am pretty new to the Ethereum and ERC20. I am willing to create an ERC20 token. I see that ERC 20 tokens can be transacted using the Ethereum addresses. However, I am wondering if it is possible to ...
1
vote
3answers
90 views

Is it possible to deploy a contract on the same address after self-destruct?

As far as I understand self-destruct simply deletes the code from a contract and turns it into a regular wallet + it sends all funds to caller/argument. But is there a way to recreate the contract? I ...
0
votes
1answer
50 views

Get Contract Address by It's ByteCode

I have some bytecode and would like to find the contract address that it belongs to. Is there an easy way to do this?
1
vote
1answer
51 views

Aren't all contracts that accept value and are deployed after the HF fatally vulnerable to replay attacks?

Let's say I deploy a contract with a simple function that accepts some value, and deploy this to the forked chain. The contract will end up on an unpredictable address U. Then people start sending ...
2
votes
1answer
43 views

binary size of contract

If one imports another contract and instantiates it with 'new', then I assume the binary of that imported contract must be fully included in my contract (increasing its deployment size accordingly). ...
1
vote
2answers
32 views

What would happen if I would deploy contract as 1st and 129th transaction?

According to how contract address is computed my 1st and 129th transaction as a contract deployment should have the same address. What would happen if I was to deploy them in that order? I already ...
3
votes
1answer
39 views

How can anyone publish a contract to an address which has been generated in advance?

There is a contract which source code tells that the contract address had been generated in advance (there is a comment there), before the contract was uploaded to the network. The address beginning ...
0
votes
1answer
29 views

Understanding addresses of contracts (when they deployed twice)

I just have a quick question about addresses of contracts. If I want to make a contract to transfere tokens, how do I get the correct addresses of the token I want? For Exsample: function transfer() ...
1
vote
2answers
36 views

Call to smartcontract without address

Lately I had a conversation with someone who says that it is possible to make a call to the smart contract without giving the address. He said it's possible to send certain parameters and by them the ...

15 30 50 per page