You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had problems with returning structs with unions in Python so now every host function returning a struct mirrors C ABI. This is actually not so bad because now you can return an error like e.g. in evmc_blockhash().
For evmc_call_fn this could be a good change.
For evmc_release_result_fn it should be a pointer not to copy the whole struct.
evmc_execute_fn
returns it as valueevmc_call_fn
expects a user specified pointer refering to it, to be filledevmc_release_result_fn
expects a pointer to it, yet itI assume 3. because you wanted it to behave like a C++ destructor.
It would be nice to:
evmc_call_fn
to return the result struct as a valueevmc_release_result_fn
not take a pointer, but a structBoth these make it even more clear that
evmc_result
struct cannot be extended by the VM.The text was updated successfully, but these errors were encountered: