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

Replace Hardcoded ABI Definitions and Bytecode #4

Open
paltrickontpb opened this issue May 4, 2018 · 2 comments
Open

Replace Hardcoded ABI Definitions and Bytecode #4

paltrickontpb opened this issue May 4, 2018 · 2 comments

Comments

@paltrickontpb
Copy link
Member

The ABI definitions are all hardcoded under App.js in the GUI/scripts folder. Find a way to use solc compiler to replace these hardcode the abi_def and bytecode.

@thekaleidoscope
Copy link
Member

thekaleidoscope commented May 17, 2018

You cannot programmatically generate the ABI for a given contract using data from the Ethereum blockchain.
In Ethereum, the Application Binary Interface (ABI) is a predefined template of the functions a contract exposes. The security aspect is handled in the Smart Contract, Unauthorised entity cannot harm unless there is a loophole in the contact code.
Possible Solutions:

  • Upload the ABI somewhere safe online and retrieve at time needed, also remove it after interaction is done.

@paltrickontpb
Copy link
Member Author

+1 to the above suggestion, I would not recommend uploading the file directly, and then using solc-js to input the abi+bytecode. But then again this is opensource this shouldn't be a problem in our repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants