Closed tomusdrw closed 6 years ago
@axelchalon totally agree wrt to API, have a look at the proposal of changes to ethabi: https://gist.github.com/tomusdrw/e8b6b3fa448a9935b35858e1aa6ceaa9
This would allow use to do:
evm.transact(|contract| contract.register(sol::address(10), sol::bytes32("test"))?;
really good stuff!
just something I thought (might be nitpicky): I find the syntax a bit counter-intuitive (also due to the current ethabi syntax). For example in:
we're calling functions on
reg
, the contract encoder/decoder helper, but it's the CALLER (evm) passed as parameter that is actually doing the main job.Don't you think that making the evm function call go first would be a good idea? Not yet sure how to implement this; it would be *roughly* something in this direction: (maybe using macros somehow)