diff --git a/src/libraries/ownable.cairo b/src/libraries/ownable.cairo index 959496d..8025ab9 100644 --- a/src/libraries/ownable.cairo +++ b/src/libraries/ownable.cairo @@ -62,7 +62,6 @@ fn transfer_ownership, impl TDrop: Drop>( fn renounce_ownership, impl TDrop: Drop>(ref self: T) { assert_only_owner(@self); __private::_transfer_ownership(ref self, contract_address_const::<0>()); - return (); } // Not public API (Cairo does not support _real_ private modules yet) diff --git a/src/z_token/view.cairo b/src/z_token/view.cairo index 4a0fec7..7f17547 100644 --- a/src/z_token/view.cairo +++ b/src/z_token/view.cairo @@ -36,10 +36,7 @@ fn decimals(self: @ContractState) -> felt252 { } fn totalSupply(self: @ContractState) -> u256 { - let scaled_up_supply = felt_total_supply(self); - let scaled_up_supply: u256 = scaled_up_supply.into(); - - scaled_up_supply + felt_total_supply(self).into() } fn felt_total_supply(self: @ContractState) -> felt252 { @@ -52,10 +49,7 @@ fn felt_total_supply(self: @ContractState) -> felt252 { } fn balanceOf(self: @ContractState, account: ContractAddress) -> u256 { - let scaled_up_balance = felt_balance_of(self, account); - let scaled_up_balance: u256 = scaled_up_balance.into(); - - scaled_up_balance + felt_balance_of(self, account).into() } fn felt_balance_of(self: @ContractState, account: ContractAddress) -> felt252 {