Konvertieren Sie BOOL in Solidität in Uint
bool isTrue = true;
uint number = isTrue ? uint(1) : uint(0);
// if isTrue then number == 1 else number == 0
Anxious Alligator
bool isTrue = true;
uint number = isTrue ? uint(1) : uint(0);
// if isTrue then number == 1 else number == 0