The application of blockchain technology to contractual activity has led to a decrease in transaction costs, but also an enormous potential cost of judicial solutions that order reversal of the effects of smart contracts. This research addresses solutions, both from the perspective of updating the unforeseen theory and from clauses that are introduced to the legal smart contracts to allow reducing the costs associated with judicial decisions that declare an anomaly in the contracts.