You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// MultUint64OrNone or will multiply the existing Uint value by a supplied uint64, and return None if either the Uint is none, or the supplied uint64 is zero.
129
+
func (optUint) MultUint64OrNone(iuint64) Uint {
130
+
if!opt.exists {
131
+
returnopt
132
+
}
133
+
ifi==0 {
134
+
returnUint{exists: false}
135
+
}
136
+
returnUint{exists: true, value: opt.value*i}
137
+
}
138
+
139
+
// SubtractOrNone will subtract the existing uint with the supplied uint64 value. If this would result in a value invalid for a uint (ie, a negative number), return None
0 commit comments