warp
warp copied to clipboard
internal writes errors handling
Raised by @jakub-wojciechowski during the Dex development (https://github.com/warp-contracts/wrc/tree/dex).
Currently errors have to be handled manually in the contract's code (checking the result.type from the SmartWeave.contracts.write
and throwing ContractError if it is different then 'ok').
If SmartWeave.contracts.write
fails, it should throw automatically by default.