Skip to content

rollback

In std/io/transaction.

effectful fn rollback(self, reason: String) : Never

Ends the attempt by rolling it back, with reason in the scope's err, its kind "rolled_back". Nothing the attempt wrote to a participant remains: tx.rollback("insufficient balance") given sender.balance < 100.