Questions tagged [creationcode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
1k views

type(C).creationCode who has access to this?

Who has access to this? For example, if I call type(SimpleStorage).creationCode, wouldn't this cause an issue because there are a lot of SimpleStorage's How does the type() function know the specific ...
MeditationOrBust's user avatar
0 votes
1 answer
325 views

Does address.code return runtime or creation code

You have three options to retrieve bytecode: type(C).runtimeCode which returns the runtime code of a contract, type(C).creationCode which returns the creation code of a contract and address.code which ...
Luex's user avatar
  • 51
1 vote
2 answers
418 views

Does the max code size limitation apply to init code, too?

Deployed bytecode (i.e. the one returned by contract creation) ought to be at most 0x6000 = 24576 bytes long. Does this limitation apply to init code passed on as input data of a user triggered ...
Olivier Bégassat's user avatar
0 votes
0 answers
62 views

How is it the case that a contract's deployed code is longer than 24.576KB given EIP 170?

The deployed code associated with the contract address 0x05c848E3547Bc3Ccd977B84140FDC917Bfff96a1 is longer than EIP 170 permits (I think?). I know I'm misunderstanding something, but am struggling to ...
struggling170's user avatar
1 vote
1 answer
142 views

Is there an ABI for wallet addresses?

If I am using the Web3 library, and I want to fetch a list of all tokens associated with my user account, would I be completely wrong in thinking that I need to use: const myAccount = new web3.eth....
timhc22's user avatar
  • 229
5 votes
1 answer
1k views

How to get the actual runtime bytecode from creation bytecode and constructor arguments without deploying

Possible outputs of the Solidity compiler include creation bytecode and deployed (runtime) bytecode. However, this compiled deployed bytecode might not be the same as the one that will actually be ...
FabijanC's user avatar
  • 111
1 vote
1 answer
2k views

Why does the creationCode of this contract change if a change is made in the importing contract?

For the following: pragma solidity >=0.5.0; contract Include { uint z = 1; } contract CreationCode { uint k = 1; function get() external returns (bytes32) { return keccak256(...
Joël's user avatar
  • 1,710
1 vote
2 answers
297 views

How do I develope a QR code for a 64 character hex string generated ethereum address?

I am learning about how the 64 character hex string generated Eth Address is formed. Is there a program for this?
Richard Jan's user avatar
33 votes
2 answers
10k views

What is the difference between bytecode, init code, deployed bytecode, creation bytecode, and runtime bytecode?

I constantly see different types of bytecode and do not know what each of them are. What are the differences between bytecode, init code, deployed bytecode, creation bytecode, and runtime bytecode?
Shane Fontaine's user avatar