Skip to content

Commit e66d31a

Browse files
committed
Resolve StreamError ArithmeticOverflow merge conflict
1 parent 6842ef7 commit e66d31a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

contracts/stream_contract/src/errors.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ pub enum StreamError {
3737
StreamAlreadyPaused = 14,
3838
/// Operation requires an active stream, but the stream is inactive (cancelled or completed).
3939
StreamNotActive = 15,
40+
/// An amount or timestamp calculation exceeded the range of its type.
41+
///
42+
/// Returned instead of letting `overflow-checks` panic and abort the whole
43+
/// transaction, so callers get a typed failure they can handle.
44+
ArithmeticOverflow = 16,
4045
}

0 commit comments

Comments
 (0)