@@ -18,7 +18,7 @@ program auction.aleo {
1818 // Requires that `bidder` matches the function caller.
1919 // The owner of the record is set to the entity responsible for running the auction (auction runner).
2020 // The address of the auction runner is aleo1ashyu96tjwe63u0gtnnv8z5lhapdu4l5pjsl2kha7fv7hvz2eqxs5dz0rg.
21- transition place_bid (bidder : address , amount : u64 ) -> Bid {
21+ fn place_bid (bidder: address , amount: u64 ) -> Bid {
2222 // Ensure the caller is the auction bidder.
2323 assert_eq (self.caller , bidder);
2424 // Return a new 'Bid' record for the auction bidder.
@@ -36,7 +36,7 @@ program auction.aleo {
3636 // Requires that the function caller is the auction runner.
3737 // Assumes that the function is invoked only after the bidding period has ended.
3838 // In the event of a tie, the first bid is selected.
39- transition resolve (first : Bid , second : Bid ) -> Bid {
39+ fn resolve (first: Bid, second: Bid) -> Bid {
4040 // Ensure the caller is the auctioneer.
4141 assert_eq (self.caller , aleo1ashyu96tjwe63u0gtnnv8z5lhapdu4l5pjsl2kha7fv7hvz2eqxs5dz0rg );
4242 // Resolve the winner of the auction.
@@ -51,7 +51,7 @@ program auction.aleo {
5151 // - `bid` : The winning bid.
5252 // Requires that the function caller is the auction runner.
5353 // Assumes that the function is invoked only after all bids have been resolved.
54- transition finish (bid : Bid ) -> Bid {
54+ fn finish (bid: Bid) -> Bid {
5555 // Ensure the caller is the auctioneer.
5656 assert_eq (self.caller , aleo1ashyu96tjwe63u0gtnnv8z5lhapdu4l5pjsl2kha7fv7hvz2eqxs5dz0rg );
5757 // Return 'is_winner' as 'true' in the winning 'Bid'.
@@ -65,6 +65,6 @@ program auction.aleo {
6565
6666 // The constructor is configured to prevent upgrades.
6767 @noupgrade
68- async constructor () {}
68+ constructor () {}
6969}
7070
0 commit comments