Skip to main content

contract_reason_text

Function contract_reason_text 

Source
pub fn contract_reason_text(reason: RuntimeValue) -> Result<String, String>
Expand description

The text a broken contract reports: its , otherwise reason, which must be Text. Shared by the tree-walker and the VM so both refuse a non-Text reason with the same words.