Skip to content

Commit

Permalink
update to use new noir types
Browse files Browse the repository at this point in the history
  • Loading branch information
just-mitch committed Feb 27, 2024
1 parent 185442b commit a63e3cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ contract GasToken {
// the true canonical gas token contract will not have this function
#[aztec(public)]
fn mint_public(to: AztecAddress, amount: Field) {
let amount = SafeU120::new(amount);
let amount = U128::from_integer(amount);
let new_balance = storage.balances.at(to).read().add(amount);

storage.balances.at(to).write(new_balance);
Expand Down

0 comments on commit a63e3cb

Please sign in to comment.