Skip to content

Commit

Permalink
remove underscore from name_ and symbol_ (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-fleming authored Sep 21, 2023
1 parent 4e388f5 commit a1b559c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/token/erc20/erc20.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ mod ERC20 {

#[generate_trait]
impl InternalImpl of InternalTrait {
fn initializer(ref self: ContractState, name_: felt252, symbol_: felt252) {
self._name.write(name_);
self._symbol.write(symbol_);
fn initializer(ref self: ContractState, name: felt252, symbol: felt252) {
self._name.write(name);
self._symbol.write(symbol);
}

fn _increase_allowance(
Expand Down
6 changes: 3 additions & 3 deletions src/token/erc721/erc721.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ mod ERC721 {

#[generate_trait]
impl InternalImpl of InternalTrait {
fn initializer(ref self: ContractState, name_: felt252, symbol_: felt252) {
self._name.write(name_);
self._symbol.write(symbol_);
fn initializer(ref self: ContractState, name: felt252, symbol: felt252) {
self._name.write(name);
self._symbol.write(symbol);

let mut unsafe_state = src5::SRC5::unsafe_new_contract_state();
src5::SRC5::InternalImpl::register_interface(ref unsafe_state, interface::IERC721_ID);
Expand Down

0 comments on commit a1b559c

Please sign in to comment.