From 9368c096776fe313a654d3851fc98c55c346cd86 Mon Sep 17 00:00:00 2001 From: florian-bellotti Date: Fri, 31 May 2024 15:31:40 +0200 Subject: [PATCH] :sparkles: Adding allowance in IERC20 --- src/interfaces/erc20.cairo | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/erc20.cairo b/src/interfaces/erc20.cairo index b6524a7..4fea319 100644 --- a/src/interfaces/erc20.cairo +++ b/src/interfaces/erc20.cairo @@ -3,6 +3,7 @@ use starknet::{ContractAddress}; #[starknet::interface] pub trait IERC20 { fn approve(ref self: TStorage, spender: ContractAddress, amount: u256); + fn allowance(self: @TState, owner: ContractAddress, spender: ContractAddress) -> u256; fn transferFrom(ref self: TStorage, from: ContractAddress, to: ContractAddress, amount: u256); fn transfer(ref self: TStorage, to: ContractAddress, amount: u256); fn balanceOf(self: @TStorage, account: ContractAddress) -> u256;