This commit is contained in:
d0cd 2022-10-27 20:17:00 -07:00
parent ebd06d292a
commit adb382cb33

View File

@ -0,0 +1,24 @@
/*
namespace: Compile
expectation: Fail
*/
program test.aleo {
record Token {
owner: address,
gates: u64,
amount: u64,
}
transition main(owner: address, amount: u64) -> Token {
let max: u64 = 0u64;
for i:u64 in 0u64..amount {
max = i;
}
return Token {
owner: owner,
gates: 0u64,
amount: amount,
};
}
}