warp icon indicating copy to clipboard operation
warp copied to clipboard

internal writes errors handling

Open ppedziwiatr opened this issue 2 years ago • 0 comments

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.

ppedziwiatr avatar Aug 29 '22 14:08 ppedziwiatr