Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EthereumFlow creates a truncated file for a large contract #1274

Open
0xivanov opened this issue Feb 19, 2025 · 0 comments
Open

EthereumFlow creates a truncated file for a large contract #1274

0xivanov opened this issue Feb 19, 2025 · 0 comments
Milestone

Comments

@0xivanov
Copy link
Contributor

0xivanov commented Feb 19, 2025

When deploying a large contract using EthereumFlow() I get INVALID_FILE_ID. The file uploaded to the network is always truncated at 4096 bytes. The same contract can be successfully deployed using ContractCreateFlow (the file size is 27034 before it is deleted).

The problem is with EthereumFlow.createFile()/createFileAsync(). FileCreateTransaction does not call setKeys() and thus creates an immutable file. An attempt to call FileAppendTransaction() fails with UNAUTHORIZED but the error goes unnoticed as no receipt is requested and fileId is returned representing a truncated file.

reference in Java SDK: hiero-ledger/hiero-sdk-java#2232

@0xivanov 0xivanov added this to the v2.57.0 milestone Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant