Timeline for Remix - Contract creation initialization returns data with length of more than 24576 bytes. The deployment will likely fails). What can be done?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 5, 2019 at 17:27 | answer | added | Sumit Patel | timeline score: 9 | |
Jan 24, 2019 at 9:17 | vote | accept | Contentop | ||
Jan 24, 2019 at 9:06 | comment | added | sp4c3 | In remix, go to details tab, look for 'runtime bytecode's object', if you have access using web3, then use web3.et.getCode(contractAddress) | |
Jan 24, 2019 at 9:00 | comment | added | Contentop | Any idea how to do so in Remix? before uploading you can check the bytecode on the Compile tab. After deployment where you can see the instance of the contract I am can't see where to check the bytecode of it (Reminding that I am not using some sort of testnet like Rinksby where you can use Etherscan, just Remix's Javascript VM). | |
Jan 24, 2019 at 8:48 | comment | added | sp4c3 | github.com/ethereum/EIPs/blob/master/EIPS/eip-170.md "if contract creation initialization returns data with length of more than 0x6000 (2^14 + 2^13) bytes, contract creation fails with an out of gas error." So check your contract code after it is deployed, as it does not have intialization code ( constructor and all). It should probably be less than 24kb ( 14952 characters) | |
Jan 24, 2019 at 8:38 | comment | added | Contentop | Ok did that. The weird thing is that as I said I have contracts A and B and B is A. When I remove the dependency of B from A and deploy A everything works and the contract is deployed. When I copy the bytecode and paste it in a txt file, the size is 60kb. I am confused as this error says it can't be bigger than 24kb? Worth mentioning that when B is A the bytecode size is 202kb :/ | |
Jan 24, 2019 at 8:29 | comment | added | sp4c3 | for part 1) Check the byte code object of your contract, it should not exceed 24kb, lines does not directly mean bigger byte code as mentioned in @rick 's answer . | |
Jan 24, 2019 at 8:17 | answer | added | Rick Park | timeline score: 5 | |
Jan 24, 2019 at 7:50 | review | First posts | |||
Jan 24, 2019 at 8:53 | |||||
Jan 24, 2019 at 7:46 | history | asked | Contentop | CC BY-SA 4.0 |