-
Notifications
You must be signed in to change notification settings - Fork 58
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
Ability to create contract instance by bytecode and ACI #1322
Comments
why does this depend on this? I don't understand |
@davidyuk I even think it should be possible to create the contract instance without relying on bytecode at all by just providing the ACI. can we do that? if I am writing a frontend that just wants to interact with the contract (knowing the ACI) I shouldn't rely on the sourcecode or bytecode note
question |
Actually, not strictly depends, but would be nice to have a confirmation of bytecode comparison approach
Should be yes, I'll check it
Yep, the same with |
yeah, I think that needs more brains to figure out the best approach for this. maybe we should open a separate discussion issue for that.
👍
We should cover each use case respective. Not sure if throwing errors is the best approach. Currently I would prefer throwing an error. What usecases do we have for the contract instance?
do we have verification methods on the contract instance right now for validating the bytecode? if so we can only support this right now for usecase nr. 1 and we are limited to a specific compiler version the SDK is connected to, correct? |
yep, see aepp-sdk-js/src/contract/aci/index.js Lines 99 to 103 in f1e9c4f
|
this should only be possible if source code is provided of course. should we otherwise skip with warnings or throw an error? I mean who would seriously try to validate bytecode without knowing the corresponding sourcecode? doesn't make sense to me 😅 |
depends on: aeternity/aesophia_http#81
The text was updated successfully, but these errors were encountered: