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

Wall of text listed at INSUFFICIENT_GAS contract-create failure #81

Closed
3Nigma opened this issue May 2, 2022 · 2 comments
Closed

Wall of text listed at INSUFFICIENT_GAS contract-create failure #81

3Nigma opened this issue May 2, 2022 · 2 comments
Labels
bug Something isn't working suggested by community The issue came from the community itself
Milestone

Comments

@3Nigma
Copy link
Contributor

3Nigma commented May 2, 2022

It looks like if you're uploading a contract with insufficient gas, you get a wall-of-text printed on CLI:

StatusError: receipt for transaction 0.0.0@1651520751.171769484 contained error status INSUFFICIENT_GAS
/home/vic/projects/3vs/headstarter-contracts/node_modules/solc/soljson.js:1
null;var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var arguments_=[];var thisProgram="./this.program";var quit_=function(status,toThrow){throw toThrow};var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_
...

RuntimeError: abort(StatusError: receipt for transaction 0.0.0@1651520751.171769484 contained error status INSUFFICIENT_GAS). Build with -s ASSERTIONS=1 for more info.
    at process.abort (/home/vic/projects/3vs/headstarter-contracts/node_modules/solc/soljson.js:1:13012)
    at process.emit (node:events:527:28)
    at emit (node:internal/process/promises:140:20)
    at processPromiseRejections (node:internal/process/promises:274:27)
    at processTicksAndRejections (node:internal/process/task_queues:97:32)

Node.js v17.8.0

It very much looks like the huge chunk of text is the solidity compiler itself.

We need to not let this happen and protect the developer's CLI from 25MB of non-sensical gibberish.

The problem might also be in the hedera SDK itself. We don't know that for sure.

@3Nigma 3Nigma added bug Something isn't working suggested by community The issue came from the community itself labels May 2, 2022
@3Nigma 3Nigma added this to the Back-burner milestone May 2, 2022
@3Nigma
Copy link
Contributor Author

3Nigma commented May 2, 2022

We don't know for sure if this is the only scenario where this behavior is triggered.

@3Nigma
Copy link
Contributor Author

3Nigma commented May 12, 2022

Reported upstream in ethereum/solc-js#493 and ethereum/solidity#12228

@3Nigma 3Nigma modified the milestones: Back-burner, 0.7.5 May 12, 2022
victorholo added a commit that referenced this issue May 14, 2022
@3Nigma 3Nigma closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working suggested by community The issue came from the community itself
Projects
None yet
Development

No branches or pull requests

1 participant