leo/tests/compiler/records/declaration.leo
Pranav Gaddamadugu 2354cc8b41 Add tests
2022-10-12 00:15:06 -05:00

21 lines
358 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_files: inputs/add.in
*/
program test.aleo {
record Token {
// The token owner.
owner: address,
// The Aleo balance (in gates).
gates: u64,
// The token amount.
amount: u64,
}
transition main(a: u8, b:u8) -> u8 {
return a + b;
}
}