Open 3Nigma opened 2 years ago
When a CONTRACT_REVERT_EXECUTED
happens on a ContractExecuteTransaction
call, the execution does not fail at this point. The subsequent getReceipt
call throws this revert error. We need version 2.16
for the @hashgraph/sdk
dependency to properly get a hold on the TransactionId
of a Receipt
when this happens. Lower sdk versions have not been tested to know if they work or not.
hedera-services
'sv0.26
has brought the capacity to throwrequire
messages out of smart contract executions. Here is a transaction that has such an error thrown inside itserror_message
property.We need to support this!
Ether's
interface.decodeErrorResult
should be used to parse the error message.We need to discuss further mechanics:
try
/catch
mechanism sufficient to get this error across to dev-land?