Error
You can throw an error by calling assert
and abort
.
Abort:
abort error_code //error code is of type u64
Assert:
assert!(expression: bool, error_code: u64)
Last updated
You can throw an error by calling assert
and abort
.
Abort:
abort error_code //error code is of type u64
Assert:
assert!(expression: bool, error_code: u64)
Last updated