mirror of
https://github.com/ProvableHQ/leo.git
synced 2025-01-06 02:24:07 +03:00
25 lines
432 B
Plaintext
25 lines
432 B
Plaintext
|
/*
|
||
|
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,
|
||
|
};
|
||
|
}
|
||
|
}
|