ewasm / design

Ewasm Design Overview and Specification
Apache License 2.0
1.02k stars 125 forks source link

New EEI method: abort #43

Closed axic closed 6 years ago

axic commented 8 years ago

Abort execution and store a reason.

Parameters

Returns

nothing

axic commented 8 years ago

Related https://github.com/ethereum/EIPs/issues/62. It could also be replaced with special LOGs, which are not rolled back at execution errors. See https://github.com/ethereum/EIPs/issues/120 for an implementation of moving LOGs to storage.

wanderer commented 8 years ago

why not just use return?

axic commented 8 years ago

Assuming we change return so that the value is not rolled back on a VM error that could work. However that introduces a discrepancy with how EVM expects it.

axic commented 6 years ago

Solved by https://github.com/ethereum/EIPs/blob/master/EIPS/eip-140.md