Skip to content

Commit

Permalink
SafeErc20Example.safe_transfer_token->safe_transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Sep 19, 2024
1 parent 970e3cf commit 22092da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions contracts/src/token/erc20/utils/safe_erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
use alloy_primitives::{Address, U256};
use alloy_sol_types::sol;
use stylus_proc::{public, sol_interface, sol_storage, SolidityError};
use stylus_sdk::{
call::Call, contract::address, storage::TopLevelStorage, types::AddressVM,
};
use stylus_sdk::{call::Call, storage::TopLevelStorage, types::AddressVM};

use crate::token::erc20;

Expand Down
2 changes: 1 addition & 1 deletion examples/safe-erc20/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sol_storage! {
#[inherit(SafeErc20)]
impl SafeErc20Example {
// Add token minting feature.
pub fn safe_transfer_token(
pub fn safe_transfer(
&mut self,
token: Address,
to: Address,
Expand Down

0 comments on commit 22092da

Please sign in to comment.