You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, operation signing and injecting is done as a single operation.
If we want to save pending operation hash in the database we cannot guarantee transactionality.
In the following code snipped if db.save... fails we have no way to recover a hash or rollback Tezos operation
As preliminary work, a util function allowing to obtain the operation has been added to the Taquito/utils package.
With this function, it is possible to obtain the operation hash before sending the operation to the node, but this required several steps that are normally abstracted by Taquito. An example has been added: integration-tests/call-contract-method-manual-steps.spec.ts.
A better API will be provided for this use-case with #432.
Currently, operation signing and injecting is done as a single operation.
If we want to save pending operation hash in the database we cannot guarantee transactionality.
In the following code snipped if
db.save...
fails we have no way to recover a hash or rollback Tezos operationIf we can obtain operation hash before submitting it to tezos, we can recover if either DB or Tezos interaction fails:
The text was updated successfully, but these errors were encountered: