mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-14 04:38:05 +03:00
Add test
This commit is contained in:
parent
6bb50c284a
commit
d2b84e501f
20
tests/tests/compiler/records/force_record_return_fail.leo
Normal file
20
tests/tests/compiler/records/force_record_return_fail.leo
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
namespace: Compile
|
||||
expectation: Pass
|
||||
*/
|
||||
|
||||
program test.aleo {
|
||||
record test_credits {
|
||||
owner: address,
|
||||
gates: u64,
|
||||
amount: u64
|
||||
}
|
||||
|
||||
transition mint_credits(to: address, amount: u64) {
|
||||
return test_credits {
|
||||
owner: self.caller,
|
||||
gates: 0u64,
|
||||
amount
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user